1 2 3 4 5 6 7 8 9 10 11 12 13
#!/bin/bash set -euo pipefail # shellcheck source=/dev/null source ~/.bash_profile if command -v brew &>/dev/null then echo >&1 "Installing go@1.20" brew install go@1.20 echo "export PATH='/opt/homebrew/opt/go@1.20/bin:$PATH'" >> ~/.bash_profile fi