From 3828a9a33353a57843206726c32de7de1004e6de Mon Sep 17 00:00:00 2001 From: Haralan Dobrev Date: Sat, 13 Aug 2022 17:09:29 +0300 Subject: [PATCH] Improve and fix bash script --- entrypoint.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 6bae5bf..839102b 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -3,10 +3,10 @@ set -euxo pipefail insecure_option="" -if ["$MINIO_INSECURE" == "true"]; then +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" deploy "$MINIO_ENDPOINT" "$MINIO_ACCESS_KEY" "$MINIO_SECRET_KEY" -mc mirror --overwrite $insecure_option $1 "deploy/$2" +mc mirror --overwrite "$insecure_option" $1 "deploy/$2"