Skip to content

Commit

Permalink
Do not attempt to autoupdate in structured mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchell-as committed Jan 22, 2024
1 parent f9b2d77 commit 2613fda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/state/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ func run(args []string, isInteractive bool, cfg *config.Instance, out output.Out
cmds.OnExecStart(msger.OnExecStart)
cmds.OnExecStop(msger.OnExecStop)

if childCmd != nil && !childCmd.SkipChecks() {
if childCmd != nil && !childCmd.SkipChecks() && !out.Type().IsStructured() {
// Auto update to latest state tool version
if updated, err := autoUpdate(svcmodel, args, cfg, an, out); err == nil && updated {
return nil // command will be run by updated exe
Expand Down

0 comments on commit 2613fda

Please sign in to comment.