From c866b0d946a09f395d3106fd6ac2ca481a3f7e8d Mon Sep 17 00:00:00 2001 From: David Dollar Date: Wed, 18 Sep 2013 15:01:25 -0400 Subject: [PATCH] dont need to specify binary --- update.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/update.go b/update.go index ff4f022..57460d9 100644 --- a/update.go +++ b/update.go @@ -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 {