Created
October 26, 2015 17:21
-
-
Save juliendsv/1dbf21f46a983181b223 to your computer and use it in GitHub Desktop.
install Go
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
#!/bin/bash | |
sudo apt-get -y install wget | |
set -e; | |
if [ -z "$1" ] | |
then | |
echo "Please specify the version you want." | |
exit | |
fi | |
wget https://storage.googleapis.com/golang/go$1.linux-amd64.tar.gz | |
# tar -C /usr/local -xzf go$1.linux-amd64.tar.gz | |
tar -C /usr/local -xzf go$1.linux-amd64.tar.gz | |
echo "export PATH=$PATH:/usr/local/go/bin" >> ~/.profile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment