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:
@@ -163,7 +163,7 @@ database_table_from_file() {
|
|||||||
inputfile="${tmpFile}"
|
inputfile="${tmpFile}"
|
||||||
|
|
||||||
# Remove possible duplicates found in lower-quality adlists
|
# 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}
|
# Store domains in database table specified by ${table}
|
||||||
# Use printf as .mode and .import need to be on separate lines
|
# Use printf as .mode and .import need to be on separate lines
|
||||||
|
Reference in New Issue
Block a user