mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2025-05-31 12:07:20 +02:00
go: linuxbrew support
This commit is contained in:
parent
113abb2888
commit
1be5dd463c
@ -9,7 +9,10 @@ set -x
|
|||||||
export GOVERSION=1.21
|
export GOVERSION=1.21
|
||||||
|
|
||||||
# Check if go is installed through snap
|
# 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 "$@"
|
snap run go "$@"
|
||||||
|
|
||||||
# Or if Debian hides it somewhere nice.
|
# Or if Debian hides it somewhere nice.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user