Skip to content

Commit

Permalink
build: fix sudo.bash.
Browse files Browse the repository at this point in the history
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5647063
  • Loading branch information
dsymonds committed Feb 14, 2012
1 parent 9f33317 commit 95902d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sudo.bash
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@ if [[ ! -d /usr/local/bin ]]; then
exit 2
fi

eval $(go tool dist env)
cd $(dirname $0)
for i in prof cov
do
# Remove old binaries if present
sudo rm -f /usr/local/bin/6$i
# Install new binaries
sudo cp ../bin/tool/$i /usr/local/bin/go$i
sudo cp $GOTOOLDIR/$i /usr/local/bin/go$i
sudo chgrp procmod /usr/local/bin/go$i
sudo chmod g+s /usr/local/bin/go$i
done

0 comments on commit 95902d1

Please sign in to comment.