From 04feb2644f56a2f33292ea61acc9c2d6fc260488 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Sun, 30 Sep 2018 20:13:11 -0600 Subject: [PATCH] Added parameter check so lack of '-' triggers help screen also --- backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup.sh b/backup.sh index 0d2479f..7a6c4fa 100755 --- a/backup.sh +++ b/backup.sh @@ -163,7 +163,7 @@ warn503=" ${ltYellow}Web users will NOT be informed the server is down!${norma ### Process script parameters # if no parameters provided, then show the help page and exit with error -if [ -z $1 ]; then +if [ -z "$1" ] || [[ ! "$1" =~ ^- ]]; then # show script help page scriptHelp fi