Skip to content

Commit 04f5300

Browse files
authored
fix(ci): ignore domain policy in checks (#9)
1 parent 0c81778 commit 04f5300

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/check-domains.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ banned=(
1313
pattern=$(IFS='|'; echo "${banned[*]//./\\.}")
1414

1515
if 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
2020
else
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

0 commit comments

Comments
 (0)