From ca554415e0afb8bdb150627090df190ebf57ae8f Mon Sep 17 00:00:00 2001 From: Nathaniel Landau Date: Sat, 7 Feb 2015 13:14:48 -0500 Subject: [PATCH] Made the trap command function --- scriptTemplate.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scriptTemplate.sh b/scriptTemplate.sh index 52003e2..7ecd432 100755 --- a/scriptTemplate.sh +++ b/scriptTemplate.sh @@ -204,7 +204,7 @@ done # ############# ############# ############# # Trap bad exits with your cleanup function -trap trapCleanup INT TERM +trap trapCleanup EXIT INT TERM # Exit on error. Append ||true if you expect an error. set -o errexit