From 390ee96e230eb76a5738d00be4654c6b553b0748 Mon Sep 17 00:00:00 2001 From: becivells <732903873@qq.com> Date: Wed, 5 Jan 2022 16:02:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=89=B9=E6=AE=8A=E6=97=B6?= =?UTF-8?q?=E5=80=99=E4=BC=9A=E6=89=93=E5=8D=B0=E4=B8=A4=E4=B8=AA=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E6=8F=90=E9=86=92=E5=92=8Cgo=20install=20=E6=97=B6?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E6=9B=B4=E6=96=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/cli/cli.go | 2 +- internal/cli/update.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/cli/cli.go b/internal/cli/cli.go index fd9967a..6843a89 100644 --- a/internal/cli/cli.go +++ b/internal/cli/cli.go @@ -10,7 +10,7 @@ import ( var ( FoFaXVersion = "0.1.25" Commit = "unknown" - Date = "unknown" + Date = "2022-01-01T01:01:01Z" Branch = "unknown" ) diff --git a/internal/cli/update.go b/internal/cli/update.go index 9940d5d..1e4d759 100644 --- a/internal/cli/update.go +++ b/internal/cli/update.go @@ -57,8 +57,8 @@ func updateFoFaXVersionToLatest() (*update.Release, error) { return nil, errors.New("No new updates found for fofax engine!") } latest := releases[0] - bannerSite(fmt.Sprintf("New:\n\nVersion:%s\n\n%s\n", latest.Version, latest.Notes)) if args.Update { + bannerSite(fmt.Sprintf("New:\n\nVersion:%s\n\n%s\n", latest.Version, latest.Notes)) currentOS := runtime.GOOS var final *update.Asset switch runtime.GOOS {