Skip to content

Commit 96630c7

Browse files
committed
Use find and xargs to avoid 'too many args' error on Mac OS X
1 parent 21f1bf4 commit 96630c7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

makecrx.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ fi
5656

5757
if [ -f utils/relaxng.xml -a -x "$(which xmllint)" ] >&2
5858
then
59-
if xmllint --noout --relaxng utils/relaxng.xml src/chrome/content/rules/*.xml
59+
# Use find and xargs to avoid "too many args" error on Mac OS X
60+
if find src/chrome/content/rules/ -name "*.xml" | xargs xmllint --noout --relaxng utils/relaxng.xml
6061
then
6162
echo Validation of rulesets with RELAX NG grammar completed. >&2
6263
else

0 commit comments

Comments
 (0)