mirror of
https://github.com/kennyp/asdf-golang.git
synced 2024-10-06 04:32:07 +08:00
exec-env: Handle system version correctly
This commit is contained in:
parent
da123dbfbc
commit
40e18d3eff
14
bin/exec-env
14
bin/exec-env
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user