Put GOPATH out of the way

GOPATH isn't needed as much since Go Modules (Go v1.11).
This commit is contained in:
Anthony Rose 2021-06-30 22:23:35 +01:00
parent cd10edf33b
commit fa23fcfc7d

View file

@ -112,7 +112,7 @@ then
fi
# Set up GOPATH.
export GOPATH="$HOME/data/go"
export GOPATH="${XDG_DATA_HOME:-$HOME/.local/share}/go"
if [ -x "$HOME/opt/go/bin/go" ] || [ -x /usr/bin/go ] || [ -x /usr/local/bin/go ]
then
if [ ! -d "$GOPATH" ]