From 0ff6b982d639993a7b3628d46e74ea6f14ae968b Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Wed, 2 Nov 2022 19:59:35 +0000 Subject: [PATCH] Update dotfiles/.profile --- dotfiles/.profile | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/dotfiles/.profile b/dotfiles/.profile index 099f4205..b1380d30 100644 --- a/dotfiles/.profile +++ b/dotfiles/.profile @@ -185,16 +185,14 @@ 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 - GOROOT="$(asdf where golang)/go" - export GOROOT - export PATH="$PATH:${GOROOT}/bin" - elif command -v brew > /dev/null; then - GOROOT="$(brew --prefix go)/libexec" - export GOROOT - export "$PATH:${GOROOT}/bin" - fi +if which go | grep -q 'asdf' && command -v asdf > /dev/null; then + GOROOT="$(asdf where golang)/go" + export GOROOT + export PATH="$PATH:${GOROOT}/bin" +elif command -v brew > /dev/null; then + GOROOT="$(brew --prefix go)/libexec" + export GOROOT + export "$PATH:${GOROOT}/bin" fi ### Android Studio