diff options
author | David Symonds <dsymonds@golang.org> | 2012-02-05 14:50:38 +1100 |
---|---|---|
committer | David Symonds <dsymonds@golang.org> | 2012-02-05 14:50:38 +1100 |
commit | 6e5a48e2c366d684cef6697e1b7d1a2fac3214d7 (patch) | |
tree | dd66f0db3c0cd276cc5f2c4fb0ff03f3b0cd64aa /src/sudo.bash | |
parent | 5f4cc33716ddfd9ce8c06c2f5e80f5a83b75d697 (diff) | |
download | go-6e5a48e2c366d684cef6697e1b7d1a2fac3214d7.tar.gz |
build: fix sudo.bash.
R=rsc, balasanjay, rsc
CC=golang-dev
http://codereview.appspot.com/5630051
Diffstat (limited to 'src/sudo.bash')
-rwxr-xr-x | src/sudo.bash | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sudo.bash b/src/sudo.bash index 369505d2f..3e1507b4e 100755 --- a/src/sudo.bash +++ b/src/sudo.bash @@ -4,7 +4,6 @@ # license that can be found in the LICENSE file. set -e -. ./env.bash case "`uname`" in Darwin) @@ -18,12 +17,13 @@ if [[ ! -d /usr/local/bin ]]; then exit 2 fi +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 "$GOROOT"/bin/tool/$i /usr/local/bin/go$i + sudo cp ../bin/tool/$i /usr/local/bin/go$i sudo chgrp procmod /usr/local/bin/go$i sudo chmod g+s /usr/local/bin/go$i done |