change error code for failing to remove tmp dir
This commit is contained in:
parent
7f2f054ebc
commit
8eb2c07785
@ -12,7 +12,7 @@ cleanup () {
|
|||||||
# remove borg temp directory, if it exists
|
# remove borg temp directory, if it exists
|
||||||
if [ -d "${borgBaseDir}/tmp" ]; then
|
if [ -d "${borgBaseDir}/tmp" ]; then
|
||||||
if ! rm -rf "${borgBaseDir}/tmp" > /dev/null 2>&1; 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
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user