Skip to content

Commit

Permalink
Use Run() as we're not reading the output
Browse files Browse the repository at this point in the history
  • Loading branch information
Omar committed Oct 10, 2023
1 parent 4be7e10 commit b2ad950
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/cli/commands/lint/lint.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func run(_ context.Context, flags *flags.ParsedFlags, args *args.ParsedArgs) err
}

versionCommand := exec.Command(dockerBinary, versionArg)
if _, err := versionCommand.CombinedOutput(); err != nil {
if err := versionCommand.Run(); err != nil {
return stacktrace.Propagate(err, "An error occurred checking Docker version. Please ensure Docker engine is running and try again.")
}

Expand Down

0 comments on commit b2ad950

Please sign in to comment.