go: linuxbrew support

This commit is contained in:
Aminda Suomalainen 2025-04-25 11:55:36 +03:00
parent 113abb2888
commit 1be5dd463c
Signed by: Mikaela
GPG Key ID: 99392F62BAE30723

View File

@ -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.