mirror of
https://github.com/kennyp/asdf-golang.git
synced 2024-10-06 12:42:07 +08:00
b1990b0a23
- Creates a temporary directory if using an older version of asdf. - Install delegates to bin/download if using an older version of asdf.
12 lines
233 B
Bash
Executable File
12 lines
233 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
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
|