Ver código fonte

Adding check for config file

sebastian 2 meses atrás
pai
commit
637d199935
1 arquivos alterados com 8 adições e 0 exclusões
  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