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