mirror of
https://github.com/uklans/cache-domains
synced 2025-06-18 23:52:55 +02:00
Fix duplicate check - too unspecific
The check is too unspecific, it currently allows partial line matches. This prevents broader entries to be added after more specific ones. Example: after lancache.steamcontent.com is added, steamcontent.com will be wrongfully skipped. This change will make sure only exact duplicates are skipped.
This commit is contained in:
parent
dceb6beb3f
commit
8f9ee10ae7
@ -52,7 +52,7 @@ while read entry; do
|
||||
continue
|
||||
fi
|
||||
parsed=$(echo $fileentry | sed -e "s/^\*\.//")
|
||||
if grep -q "$parsed" $outputfile; then
|
||||
if grep -qx "$parsed" $outputfile; then
|
||||
continue
|
||||
fi
|
||||
echo " local-zone: \"${parsed}\" redirect" >> $outputfile
|
||||
|
Loading…
Reference in New Issue
Block a user