pash: Also trap EXIT

This commit is contained in:
Dylan Araps 2019-11-29 17:50:20 +00:00
parent 15450e548d
commit 107ed3c611
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 1 additions and 1 deletions

2
pash
View File

@ -176,7 +176,7 @@ main() {
# Ensure that we leave the terminal in a usable # Ensure that we leave the terminal in a usable
# state on exit or Ctrl+C. # state on exit or Ctrl+C.
trap 'stty echo icanon' INT trap 'stty echo icanon' INT EXIT
case $1 in case $1 in
a*) pw_add "$2" ;; a*) pw_add "$2" ;;