Skip to content

Commit

Permalink
Merge pull request asdf-community#10 from daenney/patch-1
Browse files Browse the repository at this point in the history
exec-env: Handle system version correctly
  • Loading branch information
kennyp authored Jan 19, 2018
2 parents da123db + 40e18d3 commit 5362bad
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions bin/exec-env
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#!/usr/bin/env bash

if [ "$GOROOT" = "" ] ; then
export GOROOT=$ASDF_INSTALL_PATH/go
fi

if [ "$GOPATH" = "" ] ; then
export GOPATH=$ASDF_INSTALL_PATH/packages
if [ "${ASDF_INSTALL_VERSION}" != 'system' ] ; then
if [ "$GOROOT" = "" ] ; then
export GOROOT=$ASDF_INSTALL_PATH/go
fi

if [ "$GOPATH" = "" ] ; then
export GOPATH=$ASDF_INSTALL_PATH/packages
fi
fi

0 comments on commit 5362bad

Please sign in to comment.