Skip to content

Instantly share code, notes, and snippets.

Created February 11, 2018 19:10
What would you like to do?
runtest function
function runtest {
local status=$?
if [ $status -ne 0 ]; then
echo "Script failed with error from '$@'" | mail -s "Script failure!" $email
exit 0
return $status
runtest command
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment