Преглед изворни кода

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