Trap ctrl-c and exit 0

This commit is contained in:
Daniel Hoherd 2016-12-15 21:03:51 -08:00
parent f5c09d7270
commit 30b71ba73c

View File

@ -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"