fix error in tmp directory removal cmd

This commit is contained in:
Asif Bacchus 2019-07-25 12:16:09 -06:00
parent 2380d19a0d
commit c3aa35ab15

View File

@ -64,7 +64,7 @@ cleanup () {
fi fi
fi fi
# remove EML temporary directory # remove EML temporary directory
if ! rm -f "$exportDir" 2>>"$logFile"; then if ! rm -rf "$exportDir" 2>>"$logFile"; then
printf "${warn}[%s] -- [WARNING] Could not remove EML export tmp dir:" \ printf "${warn}[%s] -- [WARNING] Could not remove EML export tmp dir:" \
"$(stamp)" >> "$logFile" "$(stamp)" >> "$logFile"
printf "\n%s\n" "$exportDir" >> "$logFile" printf "\n%s\n" "$exportDir" >> "$logFile"