Skip to content

Commit

Permalink
Merge pull request #3041 from ActiveState/mitchell/dx-2461
Browse files Browse the repository at this point in the history
Do not attempt to autoupdate in structured mode.
  • Loading branch information
mitchell-as authored Jan 22, 2024
2 parents f9b2d77 + 2613fda commit fe3d58e
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 fe3d58e

Please sign in to comment.