checkFind: added provisions for:
checking for deleted file unknown error with code 105
This commit is contained in:
		
							parent
							
								
									c098b5c8fc
								
							
						
					
					
						commit
						fc786fdba7
					
				| @ -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 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user