From 37f3c015c6decded9d82ad94c0e6cb3805de7a5d Mon Sep 17 00:00:00 2001 From: Unknown Date: Tue, 3 Dec 2013 02:37:48 -0500 Subject: [PATCH] Bug fixed --- cmd/bin.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/bin.go b/cmd/bin.go index 1ec59338c..16f25c003 100644 --- a/cmd/bin.go +++ b/cmd/bin.go @@ -142,7 +142,7 @@ func runBin(ctx *cli.Context) { binName += ".exe" } binPath = path.Join(binPath, binName) - if !com.IsFile(binName) { + if !com.IsFile(binPath) { log.Error("Bin", "Fail to continue command") log.Fatal("", "Previous steps weren't successful or the project does not contain main package") } @@ -152,7 +152,7 @@ func runBin(ctx *cli.Context) { if ctx.Bool("dir") { movePath = ctx.Args()[1] } - _, err = com.Move(binName, movePath+"/"+binName) + _, err = com.Move(binPath, movePath+"/"+binName) if err != nil { log.Error("Bin", "Fail to move binary") log.Fatal("", err.Error())