use custom GOPATH
This commit is contained in:
parent
7ed5fab5d8
commit
85fbc308f0
1 changed files with 3 additions and 7 deletions
|
@ -76,13 +76,9 @@ if command -v pnpm &> /dev/null; then
|
|||
fi
|
||||
|
||||
if command -v go &> /dev/null; then
|
||||
GOPATH="$(go env GOPATH)"
|
||||
if [ -d "${GOPATH}" ]; then
|
||||
export GOPATH
|
||||
export PATH="${GOPATH}/bin:${PATH}"
|
||||
else
|
||||
unset GOPATH
|
||||
fi
|
||||
export GOPATH="${HOME}/.gopath"
|
||||
mkdir -p "${GOPATH}"
|
||||
export PATH="${GOPATH}/bin:${PATH}"
|
||||
fi
|
||||
|
||||
if command -v lazygit &> /dev/null; then
|
||||
|
|
Loading…
Reference in a new issue