Skip to content

Commit 98438a5

Browse files
committed
Do not pass empty argument if insecure is not set
1 parent 3828a9a commit 98438a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ if [[ "$MINIO_INSECURE" == "true" ]]; then
77
insecure_option="--insecure"
88
fi
99

10-
mc alias set "$insecure_option" deploy "$MINIO_ENDPOINT" "$MINIO_ACCESS_KEY" "$MINIO_SECRET_KEY"
10+
mc alias set ${insecure_option:+"$insecure_option"} deploy "$MINIO_ENDPOINT" "$MINIO_ACCESS_KEY" "$MINIO_SECRET_KEY"
1111

12-
mc mirror --overwrite "$insecure_option" $1 "deploy/$2"
12+
mc mirror --overwrite ${insecure_option:+"$insecure_option"} $1 "deploy/$2"

0 commit comments

Comments
 (0)