Last active
December 20, 2015 02:39
-
-
Save tmc/6057766 to your computer and use it in GitHub Desktop.
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
cd /tmp | |
if [[ "`uname`" == 'Linux' ]]; then | |
curl -so go.tar.gz http://go.googlecode.com/files/go1.1.1.linux-amd64.tar.gz | |
else | |
curl -so go.tar.gz http://go.googlecode.com/files/go1.1.1.darwin-amd64.tar.gz | |
fi | |
tar xf go.tar.gz | |
export GOPATH=/tmp | |
export GOROOT=/tmp/go | |
/tmp/go/bin/go get github.com/traviscline/hn | |
/tmp/bin/hn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment