diff --git a/backup.sh b/backup.sh index 143e93b..4c1d583 100755 --- a/backup.sh +++ b/backup.sh @@ -56,11 +56,11 @@ logFile="$scriptPath/${scriptName%.*}.log" # if no parameters provided, then show the help page and exit with error if [ -z $1 ]; then # show script help page - scriptHelp 1 + scriptHelp fi # use GetOpts to process parameters -while getopts 'l:' PARAMS; do +while getopts ':l:' PARAMS; do case "$PARAMS" in l) # use provided location for logFile