4 ms·
Another stack trace implementation [1] that allows you to write: some-command || fail "message" to produce a stack trace and exit the shell in case of non-z
by drizzleword 3y ago
Another stack trace implementation [1] that allows you to write:
some-command || fail "message"
to produce a stack trace and exit the shell in case of non-zero exit status from some-command, or write
some-command || softfail "message" || return $?
in case you want to produce a stack trace and return from the function.
[1]: https://github.com/runag/runag/blob/main/lib/fail.sh https://github.com/runag/runag/blob/main/lib/fail.sh