better handling of script exit when 'die' is used

This commit is contained in:
Nathaniel Landau
2015-03-10 22:36:24 -04:00
parent 40de837317
commit 0572706e47

View File

@@ -69,7 +69,7 @@ function _alert() { #my function
} }
function die () { local _message="${@} Exiting."; echo "$(_alert emergency)"; exit 1;} function die () { local _message="${@} Exiting."; echo "$(_alert emergency)"; safeExit;}
function error () { local _message="${@}"; echo "$(_alert error)"; } function error () { local _message="${@}"; echo "$(_alert error)"; }
function warning () { local _message="${@}"; echo "$(_alert warning)"; } function warning () { local _message="${@}"; echo "$(_alert warning)"; }
function notice () { local _message="${@}"; echo "$(_alert notice)"; } function notice () { local _message="${@}"; echo "$(_alert notice)"; }