Skip to content

Instantly share code, notes, and snippets.

@johnhpatton
Last active June 21, 2022 16:37
Show Gist options
  • Save johnhpatton/48ea1353c83f114c9ddd4dcac5d55714 to your computer and use it in GitHub Desktop.
Save johnhpatton/48ea1353c83f114c9ddd4dcac5d55714 to your computer and use it in GitHub Desktop.
Installs golang on mac
#!/usr/bin/env bash
ARCH=$(uname -m)
TEMPDIR=/tmp
echo "Installing some python packages..."
python --version
python -m pip install azure-cli
python -m pip install ansible
echo "Installing golang..."
curl -sL -o "${TEMPDIR}/go.pkg" "https://go.dev/dl/go1.18.3.darwin-${ARCH}.pkg"
sudo installer -pkg "${TEMPDIR}/go.pkg" -target /
cat "$HOME/.bashrc"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment