From a650a3eabb3a2094227853ff8c6d4ed48cc12b73 Mon Sep 17 00:00:00 2001 From: Nathaniel Landau Date: Sat, 7 Feb 2015 13:17:45 -0500 Subject: [PATCH] fixed trap function --- syncScripts/SyncTemplate.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncScripts/SyncTemplate.sh b/syncScripts/SyncTemplate.sh index 4acf5cc..817de12 100755 --- a/syncScripts/SyncTemplate.sh +++ b/syncScripts/SyncTemplate.sh @@ -513,7 +513,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