diff --git a/sync-history.sh b/sync-history.sh index 488b17c..6b344f1 100755 --- a/sync-history.sh +++ b/sync-history.sh @@ -41,7 +41,7 @@ if (( current_time - last_executed_time >= 15 )) || [ "$force_sync" = "-f" ]; th fi source_items=$(read_file $source_file) - items=$(echo -e "$source_items\n$new_items" | grep -v '^\:\s[<=>]\{3\}' | sort | uniq) + items=$(echo -e "$source_items\n$new_items" | grep -v '^\:\s[<=>]\{3\}' | awk '!x[$0]++') echo -e "$items" > $source_file echo -e "$items" | openssl enc -aes-256-cbc -md sha256 -out "$sync_file" -pass file:"$encryption_key_file" -pbkdf2