diff --git a/root/scripts/borgbackup.sh b/root/scripts/borgbackup.sh index 42e49ba..3ade3b8 100755 --- a/root/scripts/borgbackup.sh +++ b/root/scripts/borgbackup.sh @@ -176,6 +176,9 @@ function checkExist { echo -e "\e[1;31m[`date +%Y-%m-%d` `date +%H:%M:%S`] --ERROR:" \ "${3} was not found--\e[0m" >> $logFile quit 101 + else + # file not found, return proper code + return 3 fi elif [ "$1" = "verify" ]; then if [ -e "$2" ]; then