mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2024-12-01 15:49:40 +01:00
18 lines
231 B
Plaintext
18 lines
231 B
Plaintext
|
#!/usr/bin/env bash
|
||
|
|
||
|
# Using the snap version of go if available
|
||
|
|
||
|
set -x
|
||
|
|
||
|
# Check if go is installed through snap
|
||
|
if [ -f /snap/bin/go ]
|
||
|
then
|
||
|
snap run go $@
|
||
|
|
||
|
# Fallback to system installation
|
||
|
else
|
||
|
/usr/bin/go $@
|
||
|
fi
|
||
|
|
||
|
set +x
|