Trap for unrecognized parameters

This commit is contained in:
Asif Bacchus 2018-09-19 15:41:44 -06:00
parent 9d0989f9a9
commit 8be32fc01d

View File

@ -66,6 +66,10 @@ while getopts 'l:' PARAMS; do
# use provided location for logFile # use provided location for logFile
logFile="${OPTARG}" logFile="${OPTARG}"
;; ;;
?)
# unrecognized parameters trigger scriptHelp
scriptHelp
;;
esac esac
done done