From 013f6140edfee042ff34e4149e795f18b65e86e6 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Tue, 3 Dec 2013 21:25:59 +0800 Subject: [PATCH] update add del batch file after update --- cmd/update.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/update.go b/cmd/update.go index 205ed4acd..d72a1ddb1 100644 --- a/cmd/update.go +++ b/cmd/update.go @@ -170,8 +170,8 @@ func runUpdate(ctx *cli.Context) { log.Error("Update", "Fail to generate bat file") log.Fatal("", err.Error()) } - f.WriteString(fmt.Sprintf(`ping -n 1 127.0.0.1>nul\ncopy "%v" "%v"\ndel "%v"`, - binPath, movePath, binPath)) + f.WriteString(fmt.Sprintf(`ping -n 1 127.0.0.1>nul\ncopy "%v" "%v"\ndel "%v"\ndel "%v"`, + binPath, movePath, binPath, batPath)) f.Close() attr := &os.ProcAttr{