style: Indentation
This commit is contained in:
		
							parent
							
								
									06ecaec729
								
							
						
					
					
						commit
						3bca11c043
					
				
					 1 changed files with 17 additions and 17 deletions
				
			
		|  | @ -34,20 +34,20 @@ while [[ $# -gt 0 ]]; do | ||||||
|             destination="${2}" |             destination="${2}" | ||||||
|             shift 2 |             shift 2 | ||||||
|             ;; |             ;; | ||||||
| 	-b | --base) |         -b | --base) | ||||||
| 	    if [ "${create_base:=1}" -ne 1 ]; then |             if [ "${create_base:=1}" -ne 1 ]; then | ||||||
|                 >&2 printf "Error: Cannot create base backup when specifying differently.\n" |                     >&2 printf "Error: Cannot create base backup when specifying differently.\n" | ||||||
| 		usage |             usage | ||||||
| 	    fi |  | ||||||
| 	    shift 1 |  | ||||||
| 	    ;; |  | ||||||
|         -i | --incremental) |  | ||||||
| 	    if [ "${create_base:=0}" -ne 0 ]; then |  | ||||||
| 	        >&2 printf "Error: Cannot create incremental backup when specifying differently.\n" |  | ||||||
| 		usage |  | ||||||
|             fi |             fi | ||||||
| 	    shift 1 |             shift 1 | ||||||
| 	    ;; |             ;; | ||||||
|  |         -i | --incremental) | ||||||
|  |             if [ "${create_base:=0}" -ne 0 ]; then | ||||||
|  |                 >&2 printf "Error: Cannot create incremental backup when specifying differently.\n" | ||||||
|  |             usage | ||||||
|  |                 fi | ||||||
|  |             shift 1 | ||||||
|  |             ;; | ||||||
|         -c | --compression_level) |         -c | --compression_level) | ||||||
|             if ! [[ "${2}" =~ [[:digit:]] ]]; then |             if ! [[ "${2}" =~ [[:digit:]] ]]; then | ||||||
|                 >&2 printf "Error: Invalid compression level: '%s'\n" "${2}" |                 >&2 printf "Error: Invalid compression level: '%s'\n" "${2}" | ||||||
|  | @ -64,10 +64,10 @@ while [[ $# -gt 0 ]]; do | ||||||
|             max_size="${2}" |             max_size="${2}" | ||||||
|             shift 2 |             shift 2 | ||||||
|             ;; |             ;; | ||||||
| 	-t | --tag) |         -t | --tag) | ||||||
| 	    tag="${2}-" |             tag="${2}-" | ||||||
| 	    shift 2 |             shift 2 | ||||||
| 	    ;; |             ;; | ||||||
|         *) |         *) | ||||||
|             >&2 printf "Error: Invalid option: '%s'\n" "${1}" |             >&2 printf "Error: Invalid option: '%s'\n" "${1}" | ||||||
|             usage |             usage | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue