Преглед на файлове

Adding check for config file

sebastian преди 2 месеца
родител
ревизия
637d199935
променени са 1 файла, в които са добавени 8 реда и са изтрити 0 реда
  1. 8 0
      backupMgr/getRemoteBackup.sh

+ 8 - 0
backupMgr/getRemoteBackup.sh

@@ -1,5 +1,13 @@
 #!/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
 . $1