mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-13 16:06:59 +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}" )
|
files+=( "${!name}" )
|
||||||
done
|
done
|
||||||
|
|
||||||
local file
|
if grep --quiet --fixed-strings 'ERROR' "${files[@]}"; then
|
||||||
for file in "${files[@]}"; do
|
fail "there are errors in emerge output warnings files"
|
||||||
if cat "${file}" | grep --quiet --fixed-strings 'ERROR'; then
|
fi
|
||||||
fail "there are errors in emerge output warnings files"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Stores a path to a package.provided file inside the given root
|
# Stores a path to a package.provided file inside the given root
|
||||||
|
Loading…
Reference in New Issue
Block a user