Skip to content

Commit

Permalink
remove use of grep
Browse files Browse the repository at this point in the history
  • Loading branch information
Craig O'Donnell committed Nov 15, 2023
1 parent 15d396a commit 0375f62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/kotsadm/objects/scripts/import-minio-data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0375f62

Please sign in to comment.