aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Symonds <dsymonds@golang.org>2012-02-05 14:50:38 +1100
committerDavid Symonds <dsymonds@golang.org>2012-02-05 14:50:38 +1100
commitcdfd5b2bede93497f4c74fa0959c3d6c8445fd57 (patch)
treef2a274904ccb15918fa99321f8cf09df2dcc8b34
parent8f0602fb077f44b310567330fa5cc463a9b91ac7 (diff)
downloadgo-cdfd5b2bede93497f4c74fa0959c3d6c8445fd57.tar.xz
build: fix sudo.bash.
R=rsc, balasanjay, rsc CC=golang-dev https://golang.org/cl/5630051
-rwxr-xr-xsrc/sudo.bash4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sudo.bash b/src/sudo.bash
index 369505d2f6..3e1507b4e8 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