Updated exclusion processing section to only warn if errant file specified.
Logs if no file specified to begin with.
This commit is contained in:
		
							parent
							
								
									2323eb435e
								
							
						
					
					
						commit
						0d018e3b65
					
				| @ -627,6 +627,7 @@ if [ -n "$borgXtra" ]; then | ||||
| fi | ||||
| 
 | ||||
| ## Check if borgExclude exists since borg will throw an error if it's missing | ||||
| if [ -n "$borgExclude" ]; then | ||||
|     checkExist ff "$borgExclude" | ||||
|     checkResult="$?" | ||||
|     if [ "$checkResult" = "0" ]; then | ||||
| @ -638,6 +639,11 @@ else | ||||
|         unset borgExclude | ||||
|         exitWarn+=('2114') | ||||
|     fi | ||||
| else | ||||
|     echo -e "${op}${stamp} Exclusion pattern file not specified." \ | ||||
|         "No exclusions will be processed${normal}" >> "$logFile" | ||||
| fi | ||||
| 
 | ||||
| 
 | ||||
| ## Export TMPDIR environment variable for borg via python | ||||
| ## Python requires a writable temporary directory when unpacking borg and | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user