Skip to content

Commit 51b1217

Browse files
committed
Replace ls with find(1) command that won't warn on no matches
1 parent f07557c commit 51b1217

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

makecrx.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ cd ../..
7979
cp src/$RULESETS pkg/crx/rules/default.rulesets
8080

8181
echo 'var rule_list = [' > pkg/crx/rule_list.js
82-
for i in $(ls pkg/crx/rules/*.xml pkg/crx/rules/*.rulesets)
82+
for i in $(find pkg/crx/rules/ -maxdepth 1 \( -name '*.xml' -o -name '*.rulesets' \))
8383
do
8484
echo "\"rules/$(basename $i)\"," >> pkg/crx/rule_list.js
8585
done

0 commit comments

Comments
 (0)