diff options
author | Stanley Cheung <stanley.cheung@gmail.com> | 2015-07-21 16:14:29 -0700 |
---|---|---|
committer | Stanley Cheung <stanley.cheung@gmail.com> | 2015-07-21 16:14:29 -0700 |
commit | 736689dbcea0d3f83389b5d84fb6a1ec2078805d (patch) | |
tree | 12b752394de604469abb14f367a3d1fd30c91141 | |
parent | 45d336b8e8931276f98262275295ba4b6dc099f0 (diff) | |
parent | 29e1aca8cc3882cc9e973176d275b61f13642ec8 (diff) |
Merge pull request #2589 from stanley-cheung/add_homebrew_to_jenkins
local can only be used in a function
-rwxr-xr-x | tools/jenkins/run_distribution.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/jenkins/run_distribution.sh b/tools/jenkins/run_distribution.sh index cb564fba1a..2824c31e2a 100755 --- a/tools/jenkins/run_distribution.sh +++ b/tools/jenkins/run_distribution.sh @@ -85,8 +85,8 @@ elif [ "$platform" == "macos" ]; then # i.e. curl -fsSL https://goo.gl/getgrpc | bash -s $language # need to resolve a bunch of environment and privilege issue on the jenkins # mac machine itself - local OLD_PATH=$PATH - local PATH=$brew_root/bin:$PATH + OLD_PATH=$PATH + PATH=$brew_root/bin:$PATH cd $brew_root brew tap homebrew/dupes brew install zlib @@ -139,7 +139,7 @@ elif [ "$platform" == "macos" ]; then rm -rf $brew_root # Make sure the system brew installation is still unaffected - local PATH=$OLD_PATH + PATH=$OLD_PATH brew list -l else |