Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions libexec/goenv-install
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,12 @@ if [ "$platform" = "darwin" ]; then
extra="-osx10.6"
fi
fi
# 1.4.3 later extra none
if [ "$version" \> "1.4.2" ]; then
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this use the vercomp function? Feel free to move the definition of vercomp up.

extra=""
fi
fi




function vercomp () {
# http://stackoverflow.com/questions/4023830
# 0: '='
Expand Down Expand Up @@ -88,8 +89,9 @@ if [ "$rtn" == "1" ]
then
download="http://golang.org/dl/go${version}.${platform}-${arch}${extra}.tar.gz"
else
download="https://go.googlecode.com/files/go${version}.${platform}-${arch}${extra}.tar.gz"
download="https://storage.googleapis.com/golang/go${version}.${platform}-${arch}${extra}.tar.gz"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like this is only changing the URL for downloads up to 1.2. Should this be a change to the first download url (golang.org), instead?

fi

# Can't get too clever here
set +e

Expand Down