Skip to content

Commit

Permalink
修复特殊时候会打印两个更新提醒和go install 时版本更新问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Becivells committed Jan 5, 2022
1 parent eccb635 commit 390ee96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
var (
FoFaXVersion = "0.1.25"
Commit = "unknown"
Date = "unknown"
Date = "2022-01-01T01:01:01Z"
Branch = "unknown"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/cli/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 390ee96

Please sign in to comment.