change error code for failing to remove tmp dir

This commit is contained in:
Asif Bacchus 2020-03-26 04:01:54 -06:00
parent 7f2f054ebc
commit 8eb2c07785
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ cleanup () {
# remove borg temp directory, if it exists
if [ -d "${borgBaseDir}/tmp" ]; then
if ! rm -rf "${borgBaseDir}/tmp" > /dev/null 2>&1; then
consoleError 9 "Script completed successfully but could not remove temporary directory at $borgBaseDir/tmp. Sorry to be messy."
consoleError 3 "Script completed successfully but could not remove temporary directory at $borgBaseDir/tmp. Sorry to be messy."
fi
fi
}