Added parameter check so lack of '-' triggers help screen also

This commit is contained in:
Asif Bacchus 2018-09-30 20:13:11 -06:00
parent 43f97e6fa0
commit 04feb2644f

View File

@ -163,7 +163,7 @@ warn503=" ${ltYellow}Web users will NOT be informed the server is down!${norma
### Process script parameters ### Process script parameters
# if no parameters provided, then show the help page and exit with error # 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 # show script help page
scriptHelp scriptHelp
fi fi