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,11 +37,9 @@ fi
# -----------------------------------
function trapCleanup() {
echo ""
if is_not_empty "${tmpDir}"; then
if is_dir "${tmpDir}"; then
rm -r "${tmpDir}"
fi
fi
die "Exit trapped." # Edit this if you like.
}