summaryrefslogtreecommitdiffhomepage
path: root/ci/ios/create-vm/scripts/install-go.sh
blob: 9576dc25762079e6457ff0c88ff2fada354ea6fb (plain)
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