Migrate gsutil commands to gcloud storage in update-fuchsia-sdk.sh Replace legacy gsutil cat, ls -r, and cp commands with gcloud storage equivalents. BUG: b:486536908 Change-Id: Ia1b2c3d4e5f60718293a4b5c6d7e8f90a1b2c308 Reviewed-on: https://fuchsia-review.googlesource.com/c/samples/+/1885687 Reviewed-by: Oliver Newman <olivernewman@google.com>
diff --git a/scripts/update-fuchsia-sdk.sh b/scripts/update-fuchsia-sdk.sh index 55d7ee4..9e9d2a5 100755 --- a/scripts/update-fuchsia-sdk.sh +++ b/scripts/update-fuchsia-sdk.sh
@@ -61,15 +61,15 @@ # You can get the instance ID with the following curl commands: # Linux: `curl -sL "https://storage.googleapis.com/fuchsia/development/LATEST_LINUX` # Mac: `curl -sL "https://storage.googleapis.com/fuchsia/development/LATEST_MAC` -# You can use the gsutil command-line tool to browse and search as well: +# You can use the gcloud storage command-line tool to browse and search as well: # Get the instance ID: -# Linux: `gsutil cat gs://fuchsia/development/LATEST_LINUX` -# Mac: `gsutil cat gs://fuchsia/development/LATEST_MAC` +# Linux: `gcloud storage cat gs://fuchsia/development/LATEST_LINUX` +# Mac: `gcloud storage cat gs://fuchsia/development/LATEST_MAC` # List the SDKs available for the instance ID -# `gsutil ls -r gs://fuchsia/development/$INSTANCE_ID/sdk` +# `gcloud storage ls -r gs://fuchsia/development/$INSTANCE_ID/sdk` # Download a SDK from GCS to your current directory: -# Linux: `gsutil cp gs://fuchsia/development/$INSTANCE_ID/sdk/linux-amd64/gn.tar.gz .` -# Mac: `gsutil cp gs://fuchsia/development/$INSTANCE_ID/sdk/mac-amd64/gn.tar.gz .` +# Linux: `gcloud storage cp gs://fuchsia/development/$INSTANCE_ID/sdk/linux-amd64/gn.tar.gz .` +# Mac: `gcloud storage cp gs://fuchsia/development/$INSTANCE_ID/sdk/mac-amd64/gn.tar.gz .` # If specified version is "latest" get the latest version number if [[ "${VER_FUCHSIA_SDK}" == "latest" ]]; then