Browse Source

update add del batch file after update

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

4
cmd/update.go

@ -170,8 +170,8 @@ func runUpdate(ctx *cli.Context) {
log.Error("Update", "Fail to generate bat file") log.Error("Update", "Fail to generate bat file")
log.Fatal("", err.Error()) log.Fatal("", err.Error())
} }
f.WriteString(fmt.Sprintf(`ping -n 1 127.0.0.1>nul\ncopy "%v" "%v"\ndel "%v"`, f.WriteString(fmt.Sprintf(`ping -n 1 127.0.0.1>nul\ncopy "%v" "%v"\ndel "%v"\ndel "%v"`,
binPath, movePath, binPath)) binPath, movePath, binPath, batPath))
f.Close() f.Close()
attr := &os.ProcAttr{ attr := &os.ProcAttr{

Loading…
Cancel
Save