check for non specified borgvars file
This commit is contained in:
		
							parent
							
								
									4d1b3a2a65
								
							
						
					
					
						commit
						581f69f429
					
				| @ -116,6 +116,11 @@ if [ -z "$operation" ]; then | |||||||
|     consoleError 1 'Nothing to do!' |     consoleError 1 'Nothing to do!' | ||||||
| fi | fi | ||||||
| 
 | 
 | ||||||
|  | # no borg information file | ||||||
|  | if [ -z "$varsFile" ]; then | ||||||
|  |     consoleError 1 'You must provide a valid .borgvars file with information about your borg repo.' | ||||||
|  | fi | ||||||
|  | 
 | ||||||
| # list without archive | # list without archive | ||||||
| if [ "$operation" = 'list' ] && [ -z "$archiveName" ]; then | if [ "$operation" = 'list' ] && [ -z "$archiveName" ]; then | ||||||
|     consoleError 1 "List operation requested but no archive name provided. Please use '--list-all' for a list of all available archives." |     consoleError 1 "List operation requested but no archive name provided. Please use '--list-all' for a list of all available archives." | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user