aboutsummaryrefslogtreecommitdiff
path: root/mkshrc
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@x230.home.parents.rygel.us>2019-10-17 22:03:05 -0400
committerMitchell Riedstra <mitch@x230.home.parents.rygel.us>2019-10-17 22:03:05 -0400
commitdb09e7e10edee02a01a7dc287b35e46cd75bf6d8 (patch)
tree7da718468c6fc4f2ee98c3dbc89655ddebf38642 /mkshrc
parent2a71d6d153dcadf5212239f60d82bc2bfffefaa0 (diff)
downloaddotfiles-db09e7e10edee02a01a7dc287b35e46cd75bf6d8.tar.gz
dotfiles-db09e7e10edee02a01a7dc287b35e46cd75bf6d8.tar.xz
Fix the goroot handling in 'set_go'
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