From 1be5dd463c68fb534a06bfa7f88df07a518aa253 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Fri, 25 Apr 2025 11:55:36 +0300 Subject: [PATCH] go: linuxbrew support --- bash/usr-local-bin/go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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.