ansitest/failexit.mrg

7 lines
206 B
Plaintext
Raw Normal View History

2021-04-09 15:27:32 -05:00
# failexit.mrg - bash but might work as /bin/sh - can use as ' source ~/bin/failexit.mrg '
2021-04-09 15:25:51 -05:00
function failexit () {
echo '! Something failed! Code: '"$1 $2" # code # (and optional description)
exit $1
}