From d7dd9f89fe8ab68e730a6e81354ff2ada73e1b56 Mon Sep 17 00:00:00 2001 From: Kriss Date: Fri, 7 Jun 2019 18:12:20 +0200 Subject: [PATCH] actually terminate the script on Ctrl-C (#236) In my [PR 224](https://github.com/LukeSmithxyz/mutt-wizard/pull/224), I introduced a bug. While I was catching SIGINT with the trap statement, I did not actually exit the script and returned into the shell. Fixes https://github.com/LukeSmithxyz/mutt-wizard/issues/234 --- bin/mw | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/mw b/bin/mw index 610b8c4..651dd90 100755 --- a/bin/mw +++ b/bin/mw @@ -316,7 +316,7 @@ synchronize_flags=true gpg_path=$GPG" echo "$nmbasic" > "$NOTMUCH_CONFIG" ;} -trap 'echo -e "\033[0m\n"' INT +trap 'echo -e "\033[0m\n"; exit' STOP INT ABRT KILL case "$1" in ls) list ;;