aboutsummaryrefslogtreecommitdiff
path: root/mkshrc
diff options
context:
space:
mode:
Diffstat (limited to 'mkshrc')
-rw-r--r--mkshrc3
1 files changed, 2 insertions, 1 deletions
diff --git a/mkshrc b/mkshrc
index cc97e80..f5927fc 100644
--- a/mkshrc
+++ b/mkshrc
@@ -96,7 +96,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