mirror of
https://github.com/wahyd4/forego.git
synced 2026-08-09 05:07:05 +10:00
dont need to specify binary
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"bitbucket.org/kardianos/osext"
|
||||
"fmt"
|
||||
"github.com/ddollar/dist"
|
||||
)
|
||||
@@ -24,8 +23,7 @@ func init() {
|
||||
}
|
||||
|
||||
func runUpdate(cmd *Command, args []string) {
|
||||
binary, _ := osext.Executable()
|
||||
d := dist.NewDist(binary, "https://godist.herokuapp.com", "ddollar/forego")
|
||||
d := dist.NewDist("https://godist.herokuapp.com", "ddollar/forego")
|
||||
if len(args) > 0 {
|
||||
err := d.UpdateTo(args[0])
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user