File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -13,12 +13,12 @@ banned=(
1313pattern=$( IFS=' |' ; echo " ${banned[*]// ./ \\ .} " )
1414
1515if command -v rg > /dev/null 2>&1 ; then
16- if rg -n " (${pattern} )" --hidden --glob ' !node_modules/**' --glob ' !.git/**' --glob ' !dist/**' ; then
16+ if rg -n " (${pattern} )" --hidden --glob ' !node_modules/**' --glob ' !.git/**' --glob ' !dist/**' --glob ' !scripts/check-domains.sh ' --glob ' !DOMAIN-POLICY.md ' ; then
1717 echo " Banned domains found."
1818 exit 1
1919 fi
2020else
21- if grep -RIn -E " (${pattern} )" --exclude-dir=node_modules --exclude-dir=.git --exclude-dir=dist . ; then
21+ if grep -RIn -E " (${pattern} )" --exclude-dir=node_modules --exclude-dir=.git --exclude-dir=dist --exclude=DOMAIN-POLICY.md --exclude=scripts/check-domains.sh . ; then
2222 echo " Banned domains found."
2323 exit 1
2424 fi
You can’t perform that action at this time.
0 commit comments