From e380c9e274b6ccaff11c4753678fdae329b27624 Mon Sep 17 00:00:00 2001 From: Nathaniel Landau Date: Thu, 8 Jan 2015 20:36:03 -0500 Subject: [PATCH] cleanup temp dirs in all circumstances: --- scriptTemplate.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scriptTemplate.sh b/scriptTemplate.sh index 94c148c..94cf323 100755 --- a/scriptTemplate.sh +++ b/scriptTemplate.sh @@ -37,10 +37,8 @@ fi # ----------------------------------- function trapCleanup() { echo "" - if is_not_empty "${tmpDir}"; then - if is_dir "${tmpDir}"; then - rm -r "${tmpDir}" - fi + if is_dir "${tmpDir}"; then + rm -r "${tmpDir}" fi die "Exit trapped." # Edit this if you like. }