scriptHelp exits by passing error code if provided
This commit is contained in:
parent
dadb83cff8
commit
51b550195c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user