mirror of
https://github.com/kneutron/ansitest.git
synced 2025-01-16 04:42:55 +08:00
7 lines
206 B
Plaintext
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
|
|
}
|
|
|