From bd84b57cf0a42b1384c18252aa4309b4b5db669b Mon Sep 17 00:00:00 2001 From: Joe Cooper Date: Thu, 14 Sep 2017 00:56:23 -0500 Subject: [PATCH] catch EXIT --- slib.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/slib.sh b/slib.sh index faf32ea..a54c7e8 100644 --- a/slib.sh +++ b/slib.sh @@ -20,10 +20,10 @@ cleanup () { tput cnorm echo echo "Exiting." - exit 99 + return 1 } # This tries to catch any exit, whether normal or forced (e.g. Ctrl-C) -trap cleanup INT QUIT TERM +trap cleanup INT QUIT TERM EXIT # scolors - Color constants # canonical source http://github.com/swelljoe/scolors