Explorar el Código

Adding check for config file

sebastian hace 2 meses
padre
commit
637d199935
Se han modificado 1 ficheros con 8 adiciones y 0 borrados
  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