mirror of
https://github.com/natelandau/shell-scripting-templates.git
synced 2025-11-11 06:23:47 -05:00
cleanup temp dirs in all circumstances:
This commit is contained in:
@@ -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.
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user