diff --git a/helm/minio/templates/_helper_create_bucket.txt b/helm/minio/templates/_helper_create_bucket.txt index 90755aa5e..ea29f334a 100644 --- a/helm/minio/templates/_helper_create_bucket.txt +++ b/helm/minio/templates/_helper_create_bucket.txt @@ -39,7 +39,7 @@ connectToMinio() { # Check if the bucket exists, by using the exit code of `mc ls` checkBucketExists() { BUCKET=$1 - CMD=$(${MC} ls myminio/$BUCKET > /dev/null 2>&1) + CMD=$(${MC} stat myminio/$BUCKET > /dev/null 2>&1) return $? }