cleanup temp dirs in all circumstances:

This commit is contained in:
Nathaniel Landau
2015-01-08 20:36:03 -05:00
parent cf7047877b
commit e380c9e274

View File

@@ -37,10 +37,8 @@ fi
# ----------------------------------- # -----------------------------------
function trapCleanup() { function trapCleanup() {
echo "" echo ""
if is_not_empty "${tmpDir}"; then if is_dir "${tmpDir}"; then
if is_dir "${tmpDir}"; then rm -r "${tmpDir}"
rm -r "${tmpDir}"
fi
fi fi
die "Exit trapped." # Edit this if you like. die "Exit trapped." # Edit this if you like.
} }