Skip to content

Instantly share code, notes, and snippets.

@BSick7
Last active November 29, 2017 20:16
Show Gist options
  • Save BSick7/5ca8ad3eeec138a0bf51da775de4279e to your computer and use it in GitHub Desktop.
Save BSick7/5ca8ad3eeec138a0bf51da775de4279e to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
set -o pipefail
if [[ ! -e ~/go ]];then
wget -O /tmp/go.tgz https://redirector.gvt1.com/edgedl/go/go1.9.2.linux-amd64.tar.gz
cd ~ && tar xvzf /tmp/go.tgz
fi
echo "Removing old go at /usr/local/go"
sudo rm -rf /usr/local/go
echo "Installing go 1.9.2"
sudo cp -rp ~/go /usr/local
echo "Dumping Go ENV"
go env
echo "Installing packages..."
go get -u github.com/Masterminds/glide
go get -u github.com/jstemmer/go-junit-report
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment