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 May 12, 2023
1 parent 9ef1586 commit f00f2d7
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 @@ -238,7 +238,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 f00f2d7

Please sign in to comment.