mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-10 14:36:58 +02:00
pkg-auto: Simplify error checking in emerge output
Co-authored-by: James Le Cuirot <jlecuirot@microsoft.com>
This commit is contained in:
parent
ecd24bd5eb
commit
a8922be627
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user