Update dotfiles/.profile

This commit is contained in:
Brian Zalewski 2022-11-02 19:59:35 +00:00
parent 264f63fe4d
commit 0ff6b982d6

View file

@ -185,8 +185,7 @@ fi
export GOPATH="${HOME}/.local/go"
export GO111MODULE=on
export PATH="$PATH:${GOPATH}/bin"
if which go | grep -q 'asdf'; then
if command -v asdf > /dev/null; then
if which go | grep -q 'asdf' && command -v asdf > /dev/null; then
GOROOT="$(asdf where golang)/go"
export GOROOT
export PATH="$PATH:${GOROOT}/bin"
@ -195,7 +194,6 @@ if which go | grep -q 'asdf'; then
export GOROOT
export "$PATH:${GOROOT}/bin"
fi
fi
### Android Studio
if [ -d ~/Library/Android ]; then