-2

This is a question looking for a different syntax aside from the following three:

curl https://sdk.cloud.google.com | bash -s arg1 arg2
curl https://sdk.cloud.google.com | bash /dev/stdin arg1 arg2
bash <( curl https://sdk.cloud.google.com ) arg1 arg2

for passing arguments to a script fetched via curl ... because none of the ones listed work with the gcloud script that I'm trying to install silently onto a VM.

I've already looked into these but didn't find a 4th alternative to try out:

Community
  • 1
  • 1
pulkitsinghal
  • 3,855
  • 13
  • 45
  • 84

1 Answers1

1

Circling back, turns out to be a very niche answer, as folks from google support provided this syntax:

export CLOUDSDK_CORE_DISABLE_PROMPTS=1; curl -s https://sdk.cloud.google.com | bash &>/tmp/gcloud_install_$(date +%Y%m%d%H%M).log

pulkitsinghal
  • 3,855
  • 13
  • 45
  • 84