Browse Source

Bug fixed

pull/103/head
Unknown 11 years ago
parent
commit
37f3c015c6
  1. 4
      cmd/bin.go

4
cmd/bin.go

@ -142,7 +142,7 @@ func runBin(ctx *cli.Context) {
binName += ".exe" binName += ".exe"
} }
binPath = path.Join(binPath, binName) binPath = path.Join(binPath, binName)
if !com.IsFile(binName) { if !com.IsFile(binPath) {
log.Error("Bin", "Fail to continue command") log.Error("Bin", "Fail to continue command")
log.Fatal("", "Previous steps weren't successful or the project does not contain main package") 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") { if ctx.Bool("dir") {
movePath = ctx.Args()[1] movePath = ctx.Args()[1]
} }
_, err = com.Move(binName, movePath+"/"+binName) _, err = com.Move(binPath, movePath+"/"+binName)
if err != nil { if err != nil {
log.Error("Bin", "Fail to move binary") log.Error("Bin", "Fail to move binary")
log.Fatal("", err.Error()) log.Fatal("", err.Error())

Loading…
Cancel
Save