Skip to content

Commit

Permalink
Update aa.go
Browse files Browse the repository at this point in the history
  • Loading branch information
blacktop committed Aug 2, 2024
1 parent 61ff9db commit a7f9683
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/ota/aa.go
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,9 @@ func aaExtractPattern(in io.Reader, pattern, output string) error {
cmd.Stdin = in
out, err := cmd.CombinedOutput()
if err != nil {
return fmt.Errorf("%v: %s", err, out)
if _, ok := err.(*exec.ExitError); !ok {
return fmt.Errorf("%v: %s", err, out)
}
}
return nil
}
Expand Down

0 comments on commit a7f9683

Please sign in to comment.