Skip to content

Commit

Permalink
check-buildroot script: use export to set LANG
Browse files Browse the repository at this point in the history
for find as well this ensures correct file processing.
  • Loading branch information
pvalena authored and ffesti committed May 2, 2022
1 parent 1145827 commit fd3ef9b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/check-buildroot
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,11 @@ trap 'rm -f "$tmp"' EXIT

NCPUS=${RPM_BUILD_NCPUS:-1}

export LANG=C
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" 2>&1
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 fd3ef9b

Please sign in to comment.