Merge pull request #3033 from pi-hole/fix/duplicates_in_adlists

Remove duplicates from adlists before importing
pull/3045/head
DL6ER 5 years ago committed by GitHub
commit 2cec9eaf65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -160,10 +160,11 @@ database_table_from_file() {
fi
done
fi
inputfile="${tmpFile}"
# Remove possible duplicates found in lower-quality adlists
sort -u -o "${inputfile}" "${inputfile}"
# Store domains in database table specified by ${table}
# Use printf as .mode and .import need to be on separate lines
# see https://unix.stackexchange.com/a/445615/83260

Loading…
Cancel
Save