From 696d73a3a384bb86a406a14c4619f22ccd5a912e Mon Sep 17 00:00:00 2001 From: Minho Date: Fri, 2 Jun 2017 16:44:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/update.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/update.go b/commands/update.go index 154b7d90..b1110c64 100644 --- a/commands/update.go +++ b/commands/update.go @@ -33,12 +33,12 @@ func CheckUpdate() { } err = json.Unmarshal(body, &result) - + fmt.Println("MinDoc current version => ", conf.VERSION) if err != nil { beego.Error("CheckUpdate => ", err) - os.Exit(1) + os.Exit(0) } - fmt.Println("MinDoc current version => ", conf.VERSION) + fmt.Println("MinDoc last version => ", result[0].Name) os.Exit(0)