aboutsummaryrefslogtreecommitdiff
path: root/shell
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 /shell
parent2a71d6d153dcadf5212239f60d82bc2bfffefaa0 (diff)
downloaddotfiles-db09e7e10edee02a01a7dc287b35e46cd75bf6d8.tar.gz
dotfiles-db09e7e10edee02a01a7dc287b35e46cd75bf6d8.tar.xz
Fix the goroot handling in 'set_go'
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