Merge branch 'master' of https://git.asifbacchus.app/asif/borgScripts
This commit is contained in:
		
						commit
						37bd4e69c6
					
				| @ -272,21 +272,22 @@ if [ "$commonOptions" ]; then commonOptions=${commonOptions##[[:space:]]}; fi | |||||||
| if [ "$restoreOptions" ]; then restoreOptions=${restoreOptions##[[:space:]]}; fi | if [ "$restoreOptions" ]; then restoreOptions=${restoreOptions##[[:space:]]}; fi | ||||||
| 
 | 
 | ||||||
| # check/create restore path | # check/create restore path | ||||||
| if [ -d "$restorePath" ]; then | if [ "$operation" = 'restore' ]; then | ||||||
|     if ! touch "${restorePath}/touch.test" > /dev/null 2>&1; then |     if [ -d "$restorePath" ]; then | ||||||
|         consoleError 5 'Cannot write to specified restore directory.' |  | ||||||
|     fi |  | ||||||
| else |  | ||||||
|     if ! mkdir -p "${restorePath}" > /dev/null 2>&1; then |  | ||||||
|         consoleError 5 'Cannot create specified restore directory.' |  | ||||||
|     else |  | ||||||
|         if ! touch "${restorePath}/touch.test" > /dev/null 2>&1; then |         if ! touch "${restorePath}/touch.test" > /dev/null 2>&1; then | ||||||
|         consoleError 5 'Cannot write to specified restore directory.' |             consoleError 5 'Cannot write to specified restore directory.' | ||||||
|  |         fi | ||||||
|  |     else | ||||||
|  |         if ! mkdir -p "${restorePath}" > /dev/null 2>&1; then | ||||||
|  |             consoleError 5 'Cannot create specified restore directory.' | ||||||
|  |         else | ||||||
|  |             if ! touch "${restorePath}/touch.test" > /dev/null 2>&1; then | ||||||
|  |             consoleError 5 'Cannot write to specified restore directory.' | ||||||
|  |             fi | ||||||
|         fi |         fi | ||||||
|     fi |     fi | ||||||
| fi | fi | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| ### read borg information file | ### read borg information file | ||||||
| 
 | 
 | ||||||
| # check if file was provided as a relative or absolute path | # check if file was provided as a relative or absolute path | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user