Skip to content

Commit

Permalink
formatting in run-script
Browse files Browse the repository at this point in the history
  • Loading branch information
gargnitingoogle committed Oct 3, 2024
1 parent 6bd2870 commit d141ea7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion perfmetrics/scripts/testing_on_gke/examples/run-gke-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,11 @@ function createCustomCsiDriverIfNeeded() {
>2 echo "package_bucket \"${package_bucket}\" is too long (should be <= 63)"
return 1
fi
(gcloud storage buckets list --project=${project_id} | grep -wqo ${package_bucket}) || (region=$(echo ${zone} | rev | cut -d- -f2- | rev) && gcloud storage buckets create gs://${package_bucket} --project=${project_id} --location=${region})
# If package_bucket does not already exist, create it.
if (! (gcloud storage buckets list --project=${project_id} | grep -wqo ${package_bucket}) ); then
region=$(echo ${zone} | rev | cut -d- -f2- | rev)
gcloud storage buckets create gs://${package_bucket} --project=${project_id} --location=${region}
fi
# Build a new gcsfuse binary
printf "\nBuilding a new GCSFuse binary from ${gcsfuse_src_dir} ...\n\n"
Expand Down

0 comments on commit d141ea7

Please sign in to comment.