Skip to content

Commit

Permalink
check-buildroot script: use if-then-else
Browse files Browse the repository at this point in the history
instead of && and ||. Enhances readability and avoids unnecessary
errors in case ||: would be omitted.
  • Loading branch information
pvalena authored and ffesti committed May 2, 2022
1 parent 8a74780 commit fb6ad2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/check-buildroot
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ find "$RPM_BUILD_ROOT" \! \( \
\) -type f -print0 | \
LANG=C xargs -0r -P$NCPUS -n16 grep -lF "$RPM_BUILD_ROOT" >>$tmp

test -s "$tmp" && {
if test -s "$tmp"; then
cat "$tmp"
echo "Found '$RPM_BUILD_ROOT' in installed files; aborting"
exit 1
} || :
fi

0 comments on commit fb6ad2c

Please sign in to comment.