mirror of
https://github.com/wahyd4/forego.git
synced 2026-08-09 05:07:05 +10:00
update dist
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
},
|
||||
{
|
||||
"ImportPath": "github.com/ddollar/dist",
|
||||
"Rev": "76def9a8e494870ec6dbc66c5d3f0cfc4248109b"
|
||||
"Rev": "95b3220dbc9bb70c4cbda93b4064655a1ff86a06"
|
||||
},
|
||||
{
|
||||
"ImportPath": "github.com/inconshreveable/go-execpath",
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user