update dist

This commit is contained in:
David Dollar
2013-09-22 16:08:11 -04:00
parent 8adba6fb8c
commit fdbfe4b360
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -13,7 +13,7 @@
},
{
"ImportPath": "github.com/ddollar/dist",
"Rev": "76def9a8e494870ec6dbc66c5d3f0cfc4248109b"
"Rev": "95b3220dbc9bb70c4cbda93b4064655a1ff86a06"
},
{
"ImportPath": "github.com/inconshreveable/go-execpath",
+3 -3
View File
@@ -27,14 +27,14 @@ func runUpdate(cmd *Command, args []string) {
fmt.Println("ERROR: can't update dev version")
return
}
d := dist.NewDist("ddollar/forego")
d := dist.NewDist("ddollar/forego", Version)
var err error
var to string
if len(args) > 0 {
err = d.UpdateTo(Version, args[0])
err = d.UpdateTo(args[0])
to = args[0]
} else {
to, err = d.Update(Version)
to, err = d.Update()
}
if err != nil {
fmt.Printf("ERROR: %s\n", err)