From 857b49e18a572a8ce9c872378d5fb6c343a5bd16 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Tue, 14 Jan 2014 18:35:00 +0800 Subject: [PATCH] bug fixed --- cmd/update.go | 3 ++- gopm.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/update.go b/cmd/update.go index 19034b8b8..83722f61c 100644 --- a/cmd/update.go +++ b/cmd/update.go @@ -148,7 +148,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"\ndel "%v"`, + //f.WriteString("@echo off\r\n") + f.WriteString(fmt.Sprintf("ping -n 1 127.0.0.1>nul\r\ncopy \"%v\" \"%v\"\r\ndel \"%v\"\r\ndel \"%v\"\r\n", tmpBinPath, movePath, tmpBinPath, batPath)) f.Close() diff --git a/gopm.go b/gopm.go index e981408b5..6d00b2189 100644 --- a/gopm.go +++ b/gopm.go @@ -29,7 +29,7 @@ import ( // Test that go1.1 tag above is included in builds. main.go refers to this definition. const go11tag = true -const APP_VER = "0.6.2.0113" +const APP_VER = "0.6.2.0102" // //cmd.CmdSearch, // cmdClean,