dont need to specify binary

This commit is contained in:
David Dollar
2013-09-18 15:01:25 -04:00
parent 598be20f0d
commit c866b0d946
+1 -3
View File
@@ -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 {