Commit 42093434 authored by Mike Rosset's avatar Mike Rosset Committed by Rob Pike

sudo.bash: print error/exit if problem with /usr/local/bin

When installing profiling tools on Mac OS X print
message if there is a problem with /usr/local/bin

Fixes #2209.

R=golang-dev, r, adg
CC=golang-dev, mike.rosset
https://golang.org/cl/4950057
parent ca64a37d
......@@ -13,6 +13,11 @@ Darwin)
exit 0
esac
if [[ ! -d /usr/local/bin ]]; then
echo 1>&2 'sudo.bash: problem with /usr/local/bin; cannot install tools.'
exit 2
fi
for i in prof cov
do
sudo cp "$GOROOT"/src/cmd/$i/6$i /usr/local/bin/6$i
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment