diff options
-rw-r--r-- | lib/output.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/output.sh b/lib/output.sh index c3f74d5..d3d150f 100644 --- a/lib/output.sh +++ b/lib/output.sh @@ -29,9 +29,10 @@ error() printf '%s: Error: ' "${0##*/}" >&2 printf "${fmt}\n" "${@}" >&2 - fini - - exit ${status} + # In a subshell, this will have no effect, so the shell's exit status + # will be 128+SIGINT. Meh. + exit_status=${status} + kill -s INT ${$} } warn() |