2022-05-18 14:46:00 +02:00
|
|
|
#!/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
|
2023-04-06 11:03:10 +02:00
|
|
|
snap run go $@
|
2022-05-18 14:46:00 +02:00
|
|
|
|
|
|
|
# Fallback to system installation
|
|
|
|
else
|
2023-04-06 11:03:10 +02:00
|
|
|
/usr/bin/go $@
|
2022-05-18 14:46:00 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
set +x
|