mirror of
https://github.com/minio/minio
synced 2024-10-14 11:52:56 +00:00
helm: Make bucket existence check faster (#16321)
This commit is contained in:
parent
27417459fb
commit
aa56c6d51d
|
@ -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 $?
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue