Browse Source

add update command: need verified

pull/103/head
Lunny Xiao 11 years ago
parent
commit
6eafc83fe5
  1. 4
      cmd/update.go

4
cmd/update.go

@ -123,7 +123,7 @@ func runUpdate(ctx *cli.Context) {
}
defer func() {
// Clean files.
os.RemoveAll(path.Join(repoPath, VENDOR))
os.RemoveAll(path.Join(repoPath, doc.VENDOR))
}()
// Check if previous steps were successful.
@ -146,7 +146,7 @@ func runUpdate(ctx *cli.Context) {
if runtime.GOOS == "windows" {
binName += ".exe"
}
binPath := path.Join(VENDOR, "src", pkgPath, binName)
binPath := path.Join(doc.VENDOR, "src", pkgPath, binName)
if !com.IsFile(binPath) {
log.Error("Update", "Fail to continue command")
log.Fatal("", "Previous steps weren't successful or the project does not contain main package")

Loading…
Cancel
Save