Skip to content

Commit

Permalink
fix: fix update detection
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinJWendt committed May 30, 2021
1 parent 19e035d commit dc77446
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pcli.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func CheckForUpdates() error {

tagName := gjson.Get(string(body), "tag_name").String()

if rootCmd.Version != tagName {
if rootCmd.Version != tagName && tagName != "" {
format := "A new version of %s is availble (%s)!\n"
format += "You can install the new version with: "

Expand Down

0 comments on commit dc77446

Please sign in to comment.