Skip to content

Commit

Permalink
catch EXIT
Browse files Browse the repository at this point in the history
  • Loading branch information
swelljoe committed Sep 14, 2017
1 parent 3bd74f6 commit bd84b57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions slib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bd84b57

Please sign in to comment.