pkg-auto: Simplify error checking in emerge output

Co-authored-by: James Le Cuirot <jlecuirot@microsoft.com>
This commit is contained in:
Krzesimir Nowak 2025-04-29 14:07:13 +02:00 committed by GitHub
parent ecd24bd5eb
commit a8922be627
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -325,12 +325,9 @@ function ensure_no_errors() {
files+=( "${!name}" )
done
local file
for file in "${files[@]}"; do
if cat "${file}" | grep --quiet --fixed-strings 'ERROR'; then
fail "there are errors in emerge output warnings files"
fi
done
if grep --quiet --fixed-strings 'ERROR' "${files[@]}"; then
fail "there are errors in emerge output warnings files"
fi
}
# Stores a path to a package.provided file inside the given root