checkFind: added provisions for:

checking for deleted file
unknown error with code 105
This commit is contained in:
Asif Bacchus 2018-09-07 01:23:33 -06:00
parent c098b5c8fc
commit fc786fdba7
1 changed files with 9 additions and 0 deletions

View File

@ -187,6 +187,14 @@ function checkExist {
"Problem creating ${2}--\e[0m" >> $logFile
quit 102
fi
elif [ "$1" = "noFind"]; then
if [ -z "$2" ]; then
return 0
else
return 1
fi
else
return 105
fi
}
### End of functions
@ -363,6 +371,7 @@ else
echo -e "--ERROR-- Please check Borg's output.\e[0m" >> $logFile
fi
## Put NextCloud back into operational mode
echo -e "\e[1;36m[`date +%Y-%m-%d` `date +%H:%M:%S`] Taking NextCloud" \
"out of maintenance mode...\e[0m" >> $logFile