mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2025-05-30 03:17:46 +02:00
go: linuxbrew support
This commit is contained in:
parent
113abb2888
commit
1be5dd463c
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user