Skip to content

Commit

Permalink
fix: Don't perform version check in completion command (#448)
Browse files Browse the repository at this point in the history
  • Loading branch information
codablock committed Apr 29, 2023
1 parent b87cc3e commit a323315
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/kluctl/commands/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,9 @@ func Main() {
}
ctx = initStatusHandler(ctxIn, flags.Debug, flags.NoColor)
if !flags.NoUpdateCheck {
checkNewVersion(ctx)
if len(os.Args) < 2 || (os.Args[1] != "completion" && os.Args[1] != "__complete") {
checkNewVersion(ctx)
}
}
return ctx, nil
})
Expand Down

0 comments on commit a323315

Please sign in to comment.