We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0930b16 commit 0972dbcCopy full SHA for 0972dbc
test/validations/special/duplicate-whitelist-cleanup.sh
@@ -4,7 +4,8 @@ TMPFILE=`mktemp /tmp/buffer.XXXXXXXX`
4
trap 'rm "$TMPFILE"' EXIT
5
6
for host in `cat test/validations/special/duplicate-whitelist.txt`; do
7
- REPEATS=`egrep -l "<target\s+host=\s*\"$host\"\s*/>" src/chrome/content/rules/*.xml | wc -l`
+ REGEX_ESCAPED_HOST=`python3.6 -c "import re; print(re.escape('$host'))"`
8
+ REPEATS=`egrep -l "<target\s+host=\s*\"$REGEX_ESCAPED_HOST\"\s*/>" src/chrome/content/rules/*.xml | wc -l`
9
if [ $REPEATS -gt 1 ]; then
10
echo $host
11
fi
0 commit comments