Skip to content

Commit

Permalink
Add [email protected] to $PATH if needed
Browse files Browse the repository at this point in the history
Test Plan:
make
make
  • Loading branch information
dbraley committed Sep 11, 2019
1 parent 0d64ca2 commit 9a109b4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mac-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,10 @@ install_go() {
else
brew install [email protected]
fi

if [ -x $(hash go 2>/dev/null) ] && [ -d "/usr/local/opt/[email protected]/bin" ]; then
echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> ~/.bash_profile
fi
else
success "go already installed"
fi
Expand Down

0 comments on commit 9a109b4

Please sign in to comment.