Last active
June 21, 2022 16:37
-
-
Save johnhpatton/48ea1353c83f114c9ddd4dcac5d55714 to your computer and use it in GitHub Desktop.
Installs golang on mac
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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