scriptHelp exits by passing error code if provided

This commit is contained in:
Asif Bacchus 2018-09-19 15:49:45 -06:00
parent dadb83cff8
commit 51b550195c

View File

@ -18,8 +18,8 @@ stamp="[`date +%Y-%m-%d` `date +%H:%M:%S`]"
### scriptHelp -- display usage information for this script
function scriptHelp {
echo "In the future, I will be something helpful!"
# do NOT use quit function, just exit with error code
exit 98
# exit with error code IF passed
quit $1
}
### quit -- exit the script after logging any errors, warnings, etc. and