Skip to content
Snippets Groups Projects
Commit 736689db authored by Stanley Cheung's avatar Stanley Cheung
Browse files

Merge pull request #2589 from stanley-cheung/add_homebrew_to_jenkins

local can only be used in a function
parents 45d336b8 29e1aca8
No related branches found
No related tags found
No related merge requests found
...@@ -85,8 +85,8 @@ elif [ "$platform" == "macos" ]; then ...@@ -85,8 +85,8 @@ elif [ "$platform" == "macos" ]; then
# i.e. curl -fsSL https://goo.gl/getgrpc | bash -s $language # i.e. curl -fsSL https://goo.gl/getgrpc | bash -s $language
# need to resolve a bunch of environment and privilege issue on the jenkins # need to resolve a bunch of environment and privilege issue on the jenkins
# mac machine itself # mac machine itself
local OLD_PATH=$PATH OLD_PATH=$PATH
local PATH=$brew_root/bin:$PATH PATH=$brew_root/bin:$PATH
cd $brew_root cd $brew_root
brew tap homebrew/dupes brew tap homebrew/dupes
brew install zlib brew install zlib
...@@ -139,7 +139,7 @@ elif [ "$platform" == "macos" ]; then ...@@ -139,7 +139,7 @@ elif [ "$platform" == "macos" ]; then
rm -rf $brew_root rm -rf $brew_root
# Make sure the system brew installation is still unaffected # Make sure the system brew installation is still unaffected
local PATH=$OLD_PATH PATH=$OLD_PATH
brew list -l brew list -l
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment