Skip to content

Commit

Permalink
Treat dots literally in domain history search
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostwords committed Sep 30, 2024
1 parent a479dba commit d870e40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion search_log.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ for rev in $(git rev-list HEAD -- log.txt); do
found=
git --no-pager show "$rev":log.txt > "$tmp_dir/log.txt"
if grep -Eq '[Nn]ew (domains|trackers) in snitch_map' "$tmp_dir/log.txt"; then
found=$(grep -m 1 -nE "[Nn]ew (domains|trackers) in snitch_map.*$1" "$tmp_dir/log.txt" | \
found=$(grep -m 1 -nE "[Nn]ew (domains|trackers) in snitch_map.*${1//./\\.}" "$tmp_dir/log.txt" | \
cut -d : -f 1)

if [ -n "$found" ]; then
Expand Down

0 comments on commit d870e40

Please sign in to comment.