ansitest/failexit.mrg
2021-04-09 15:27:32 -05:00

7 lines
206 B
Plaintext

# failexit.mrg - bash but might work as /bin/sh - can use as ' source ~/bin/failexit.mrg '
function failexit () {
echo '! Something failed! Code: '"$1 $2" # code # (and optional description)
exit $1
}