From 8eb2c07785dae974e703295973a98d873adf5efc Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Thu, 26 Mar 2020 04:01:54 -0600 Subject: [PATCH] change error code for failing to remove tmp dir --- borghelper.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/borghelper.sh b/borghelper.sh index 0c82ff6..da1e516 100755 --- a/borghelper.sh +++ b/borghelper.sh @@ -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 }