I am on a mac and am trying to install the Google Cloud SDK (including the gcloud command line utility) using this command in terminal
curl https://sdk.cloud
sudo ./google-cloud-sdk/install.sh
I ran this in the root directory and it worked. I'm running macOS Mojave Version 10.14.3.