Skip to content

Commit

Permalink
Version.
Browse files Browse the repository at this point in the history
  • Loading branch information
udhos committed Apr 9, 2017
1 parent 23ec18d commit e80a305
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
20 changes: 13 additions & 7 deletions update-golang.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
#!/bin/bash
#
# update-golang is a script to easily fetch and install new Golang releases
#
# Home: https://github.com/udhos/update-golang

version=0.0

me=`basename $0`
msg() {
echo >&2 $me: $*
}

msg version $version

# defaults
source=https://storage.googleapis.com/golang
Expand Down Expand Up @@ -37,14 +50,7 @@ url=$source/$filename
goroot=$destination/go
filepath=$destination/$filename

me=`basename $0`

msg() {
echo >&2 $me: $*
}

save_dir=$PWD

cleanup() {
[ -n "$save_dir" ] && cd $save_dir
}
Expand Down
2 changes: 1 addition & 1 deletion update-golang.sh.sha256
Original file line number Diff line number Diff line change
@@ -1 +1 @@
79dd0875d9582e141e2986697e18816497ab3f0c3cb15e01aac9a164455c3009 update-golang.sh
99f9f0fa041a5993e83279b802459e88fc51a17fead1647bb399eec7979e4b3c update-golang.sh

0 comments on commit e80a305

Please sign in to comment.