aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
Diffstat (limited to 'shell')
-rw-r--r--shell/utils3
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/utils b/shell/utils
index 3fceec8..3822ca2 100644
--- a/shell/utils
+++ b/shell/utils
@@ -3,7 +3,8 @@ set_go() {
export GOPATH="${GOPATH:-$HOME/go}"
export PATH="$GOPATH/bin:$PATH"
- _gobin="/usr/local/go/bin"
+ GOROOT="${GOROOT:-/usr/local/go}"
+ _gobin="${GOROOT}/bin"
if [ -e "$_gobin" ] ; then
export PATH="$_gobin:$PATH"
fi