mirror of
https://github.com/minio/minio.git
synced 2025-02-23 03:22:30 -05: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`
|
# Check if the bucket exists, by using the exit code of `mc ls`
|
||||||
checkBucketExists() {
|
checkBucketExists() {
|
||||||
BUCKET=$1
|
BUCKET=$1
|
||||||
CMD=$(${MC} ls myminio/$BUCKET > /dev/null 2>&1)
|
CMD=$(${MC} stat myminio/$BUCKET > /dev/null 2>&1)
|
||||||
return $?
|
return $?
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user