Browse Source

Adding check for config file

sebastian 1 week ago
parent
commit
637d199935
1 changed files with 8 additions and 0 deletions
  1. 8 0
      backupMgr/getRemoteBackup.sh

+ 8 - 0
backupMgr/getRemoteBackup.sh

@@ -1,5 +1,13 @@
 #!/bin/bash
 #!/bin/bash
 
 
+#Check if path to the config file was provided
+if [ -z "$1" ]
+then
+    echo "Please call this script with the path to the config file!"
+    exit
+fi
+
+
 #Read the backup folders and configuration variables from the config script
 #Read the backup folders and configuration variables from the config script
 . $1
 . $1