Browse Source

Merge branch 'master' of github.com:GPMGo/gpm

pull/103/head
Unknown 12 years ago
parent
commit
6e53dd40f9
  1. 4
      build.go

4
build.go

@ -41,12 +41,14 @@ func runBuild(cmd *Command, args []string) {
for _, v := range paths {
if utils.IsExist(v + "/bin/" + proName) {
if utils.IsExist(wd + "/" + proName) {
err := os.Remove(wd + "/" + proName)
if err != nil {
fmt.Printf("Fail to remove file in current directory: %s.\n", err)
return
}
err = os.Rename(v+"/bin/"+proName, wd+"/"+proName)
}
err := os.Rename(v+"/bin/"+proName, wd+"/"+proName)
if err == nil {
fmt.Printf("Moved file from $GOPATH(%s) to current directory(%s).\n", v, wd)
return

Loading…
Cancel
Save