-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:

2
  • If possible, please help improve the question and leave comments here when down-voting. Thanks! Commented May 3, 2015 at 20:39
  • 1
    Use xargs to pass parameters to a script. Commented May 4, 2015 at 10:44

1 Answer 1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.