From ff0157464677e29ba59392001696a480b3451d43 Mon Sep 17 00:00:00 2001 From: Dominic Dumrauf Date: Fri, 16 Oct 2020 21:02:18 +0100 Subject: [PATCH] Issue #5: Provide Docker Container Adding `trap` for proper SIGINT and SIGTERM handling --- yt2ab.sh | 3 +++ 1 file changed, 3 insertions(+) mode change 100755 => 100644 yt2ab.sh diff --git a/yt2ab.sh b/yt2ab.sh old mode 100755 new mode 100644 index e1c7f57..c9329b8 --- a/yt2ab.sh +++ b/yt2ab.sh @@ -6,6 +6,9 @@ set +x # Stop on all errors set -e +# Ensure proper exit on SIGINT and SIGTERM +trap "exit 0" SIGINT SIGTERM + ############################################################################### # Default Arguments #