rstudio/cloudml

In OS X first `gcloud_install()` does not call `gcloud init`

Closed this issue · 1 comments

In OS X under an RStudio terminal:

(source ~/.bash_profile)  && echo $PATH
/Users/javierluraschi/miniconda2/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

Same behavior running under plain terminal:

'/var/folders/ks/wm_bx4cn70s6h0r5vgqpsldm0000gn/T//RtmphkSs1E/install_google_cloud_sdk-29e71f580cd2.bash' '--install-dir=/Users/javierluraschi' && (source ~/.bash_profile || true) && gcloud init
...
[/Users/javierluraschi/.bash_profile] has been updated.

==> Start a new shell for the changes to take effect.


For more information on how to get started, please visit:
  https://cloud.google.com/sdk/docs/quickstarts


-bash: gcloud: command not found

One potential fix seems to be to not use parenthesis...

source ~/.bash_profile  && echo $PATH
/Users/javierluraschi/google-cloud-sdk/bin:/Users/javierluraschi/miniconda2/bin:/Users/javierluraschi/miniconda2/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

Fixed with #178.