pash: Also trap EXIT
This commit is contained in:
parent
15450e548d
commit
107ed3c611
2
pash
2
pash
|
@ -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" ;;
|
||||||
|
|
Loading…
Reference in New Issue