Because the script downloaded by the script at https://sdk.cloud.google.com
uses /dev/tty on line 117 it's not fit to install with a remote ssh command.
The prompts don't help either.
This is my current workaround, but it would be nice if it worked out of the box
and you could parameterize the prompts:
gcloud compute ssh --zone <ZONE> <INSTANCE> --command "sudo curl
https://dl.google.com/dl/cloudsdk/release/install_google_cloud_sdk.bash | sed
's/install < \/dev\/tty/install/g' | HOME=/opt sudo
CLOUDSDK_CORE_DISABLE_PROMPTS=true bash"
Original issue reported on code.google.com by jsalve...@travix.com on 15 Jun 2015 at 9:16
Original issue reported on code.google.com by
jsalve...@travix.com
on 15 Jun 2015 at 9:16