From cf7047877b42294848f3ae83c331f990664649ed Mon Sep 17 00:00:00 2001 From: Nathaniel Landau Date: Thu, 8 Jan 2015 20:34:28 -0500 Subject: [PATCH] fixed problem removing temp directories in all circumstances --- lib/sharedFunctions.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/sharedFunctions.sh b/lib/sharedFunctions.sh index e79ad9a..3823a53 100755 --- a/lib/sharedFunctions.sh +++ b/lib/sharedFunctions.sh @@ -20,10 +20,8 @@ # Usage: Add this function at the end of every script function safeExit() { # Delete temp files, if any - if is_not_empty "${tmpDir}"; then - if is_dir "${tmpDir}"; then - rm -r "${tmpDir}" - fi + if is_dir "${tmpDir}"; then + rm -r "${tmpDir}" fi trap - INT TERM EXIT exit