From 30b71ba73cc227c1946331b33add4a8beb5a744b Mon Sep 17 00:00:00 2001 From: Daniel Hoherd Date: Thu, 15 Dec 2016 21:03:51 -0800 Subject: [PATCH] Trap ctrl-c and exit 0 --- AAXtoMP3.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AAXtoMP3.sh b/AAXtoMP3.sh index b726a46..52621b4 100755 --- a/AAXtoMP3.sh +++ b/AAXtoMP3.sh @@ -7,7 +7,7 @@ if ! command -v ffmpeg 2> /dev/null ; then exit 1 fi -trap 'rm -f "tmp.txt"' EXIT TERM +trap 'rm -f "tmp.txt" ; exit 0 ;' EXIT TERM INT while [ $# -gt 0 ]; do FILE="$1"