mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-23 21:30:17 +00:00
Use sort -u instead of uniq as it is guaranteed to be safe when doing inline file operations.
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
parent
bd1b004d94
commit
570a7a5c11
1 changed files with 1 additions and 1 deletions
|
@ -163,7 +163,7 @@ database_table_from_file() {
|
|||
inputfile="${tmpFile}"
|
||||
|
||||
# Remove possible duplicates found in lower-quality adlists
|
||||
uniq -u "${inputfile}" "${inputfile}"
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue