From a171d16f59ef4eb79dd5e253db5d4a6b2651b45c Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Thu, 3 Nov 2022 03:43:17 +0000 Subject: [PATCH] Update dotfiles/.profile --- dotfiles/.profile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dotfiles/.profile b/dotfiles/.profile index e98cfc89..4f21a306 100644 --- a/dotfiles/.profile +++ b/dotfiles/.profile @@ -185,11 +185,11 @@ fi export GOPATH="${HOME}/.local/go" export GO111MODULE=on export PATH="$PATH:${GOPATH}/bin" -if which go | grep -q 'asdf' > /dev/null && command -v asdf > /dev/null; then +if command -v go > /dev/null && which go | grep -q 'asdf' > /dev/null && 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 +elif command -v go > /dev/null && command -v brew > /dev/null; then GOROOT="$(brew --prefix go)/libexec" export GOROOT export "$PATH:${GOROOT}/bin"