scripts/bash/usr-local-bin/go

17 lines
226 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
# Using the snap version of go if available
set -x
# Check if go is installed through snap
2023-05-18 11:25:47 +02:00
if [ -f /snap/bin/go ]; then
2023-04-06 11:03:10 +02:00
snap run go $@
# Fallback to system installation
else
2023-04-06 11:03:10 +02:00
/usr/bin/go $@
fi
set +x