diff --git a/gravity.sh b/gravity.sh index 58d60ff4..49a4fc1c 100755 --- a/gravity.sh +++ b/gravity.sh @@ -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