From 0375f62e3ccea654c74fd50e8e3c2d283f00d2a9 Mon Sep 17 00:00:00 2001 From: Craig O'Donnell Date: Tue, 14 Nov 2023 21:30:27 +0000 Subject: [PATCH] remove use of grep --- pkg/kotsadm/objects/scripts/import-minio-data.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/kotsadm/objects/scripts/import-minio-data.sh b/pkg/kotsadm/objects/scripts/import-minio-data.sh index b33288ba3f..65acbe11fd 100644 --- a/pkg/kotsadm/objects/scripts/import-minio-data.sh +++ b/pkg/kotsadm/objects/scripts/import-minio-data.sh @@ -51,7 +51,7 @@ until $KOTSADM_MINIO_MIGRATION_DIR/bin/mc ready $KOTSADM_MINIO_NEW_ALIAS; do done # check if the bucket already exists -if $KOTSADM_MINIO_MIGRATION_DIR/bin/mc ls $KOTSADM_MINIO_NEW_ALIAS | grep -q $KOTSADM_MINIO_BUCKET_NAME; then +if $KOTSADM_MINIO_MIGRATION_DIR/bin/mc ls $KOTSADM_MINIO_NEW_ALIAS/$KOTSADM_MINIO_BUCKET_NAME; then echo "bucket already exists, skipping creation" else # create the bucket