Skip to content

Commit

Permalink
Do not pass empty argument if insecure is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
hkdobrev committed Aug 29, 2022
1 parent 3828a9a commit 98438a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 98438a5

Please sign in to comment.