Do not pass empty argument if insecure is not set
This commit is contained in:
		
							parent
							
								
									3828a9a333
								
							
						
					
					
						commit
						98438a5d45
					
				|  | @ -7,6 +7,6 @@ if [[ "$MINIO_INSECURE" == "true" ]]; then | |||
|   insecure_option="--insecure" | ||||
| fi | ||||
| 
 | ||||
| mc alias set "$insecure_option" deploy "$MINIO_ENDPOINT" "$MINIO_ACCESS_KEY" "$MINIO_SECRET_KEY" | ||||
| mc alias set ${insecure_option:+"$insecure_option"} deploy "$MINIO_ENDPOINT" "$MINIO_ACCESS_KEY" "$MINIO_SECRET_KEY" | ||||
| 
 | ||||
| mc mirror --overwrite "$insecure_option" $1 "deploy/$2" | ||||
| mc mirror --overwrite ${insecure_option:+"$insecure_option"} $1 "deploy/$2" | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Haralan Dobrev
						Haralan Dobrev