Permalink
Browse files

Use a block entry in travis / bash(#1062)

The multiple statements inside the bash if block are being treated as one continuous command.
This PR separates them properly with a block entry.
  • Loading branch information...
gdbelvin committed Oct 9, 2018
1 parent a2c69e0 commit 9fd8ff9c22fb287c3dbfdd9e17c056fe144b0358
Showing with 6 additions and 5 deletions.
  1. +6 −5 .travis.yml
View
@@ -19,13 +19,14 @@ addons:
- python3-pip
before_install:
- if [ ! -d $HOME/gcloud/google-cloud-sdk ]; then
mkdir -p $HOME/gcloud
- |
if [ ! -d $HOME/gcloud/google-cloud-sdk ]; then
mkdir -p $HOME/gcloud
wget https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.tar.gz --directory-prefix=$HOME/gcloud
cd $HOME/gcloud
tar xzf google-cloud-sdk.tar.gz
./google-cloud-sdk/install.sh -q
cd $TRAVIS_BUILD_DIR;
tar xzf google-cloud-sdk.tar.gz;
./google-cloud-sdk/install.sh -q;
cd $TRAVIS_BUILD_DIR
fi
- source "$HOME/gcloud/google-cloud-sdk/path.bash.inc"
- gcloud -q components update

0 comments on commit 9fd8ff9

Please sign in to comment.