Skip to content

Instantly share code, notes, and snippets.

@alock
alock / golang.sh
Created August 2, 2022 15:19
bump golang versions for asdf config and jetbrains config
#!/bin/bash
if [ -z "$1" ]
then
echo "Please pass golang semver (ex: ./golang.sh 1.18.5)"
exit
fi
version="$1"
if [[ ! ${version} =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
#!/bin/bash
# Strongly borrowed from the gist below.
# https://gist.github.com/lg/6f80593bd55ca9c9cf886da169a972c3
if [ -z "$1" ]; then
__usage="
Invalid number of arguments!
Usage: sudo ./upgrade-tailscale.sh <semver>
Example: sudo ./upgrade-tailscale.sh 1.8.3
"

Keybase proof

I hereby claim:

  • I am alock on github.
  • I am alock (https://keybase.io/alock) on keybase.
  • I have a public key ASAtHe7E3hTJxB63TTaGvwZnbDgyy0bAkUb8mpxE50u6cAo

To claim this, I am signing this object: