Skip to content

Commit

Permalink
check-buildroot: Redirect xargs stderr to $tmp
Browse files Browse the repository at this point in the history
allows failing on various errors as well
(and ensures proper handling of the output in case it changes again).
  • Loading branch information
pvalena authored and ffesti committed May 2, 2022
1 parent fb6ad2c commit f2b4c64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/check-buildroot
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ NCPUS=${RPM_BUILD_NCPUS:-1}
find "$RPM_BUILD_ROOT" \! \( \
-name '*.pyo' -o -name '*.pyc' -o -name '*.elc' -o -name '.packlist' \
\) -type f -print0 | \
LANG=C xargs -0r -P$NCPUS -n16 grep -lF "$RPM_BUILD_ROOT" >>$tmp
LANG=C xargs -0r -P$NCPUS -n16 grep -lF "$RPM_BUILD_ROOT" >>$tmp 2>&1

if test -s "$tmp"; then
cat "$tmp"
Expand Down

0 comments on commit f2b4c64

Please sign in to comment.