diff --git a/bash/usr-local-bin/go b/bash/usr-local-bin/go index 984ca3b..28fa777 100755 --- a/bash/usr-local-bin/go +++ b/bash/usr-local-bin/go @@ -9,7 +9,10 @@ set -x export GOVERSION=1.21 # Check if go is installed through snap -if [ -f /snap/bin/go ]; then +if [ -f /home/linuxbrew/.linuxbrew/bin/go ]; then + /home/linuxbrew/.linuxbrew/bin/go "$@" + +elif [ -f /snap/bin/go ]; then snap run go "$@" # Or if Debian hides it somewhere nice.