annna-add-hashtag: fix resorting the list when adding a hashtag - annna - Annna the nice friendly bot. HTML git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/ DIR Log DIR Files DIR Refs DIR Tags DIR README --- DIR commit a477b1b559f1a5f41c33be3c7d33074164237460 DIR parent 139fc2bdda823b5693b07bfedaecbd678e26fd14 HTML Author: Annna Robert-Houdin <annna@bitreich.org> Date: Sat, 8 Feb 2020 19:12:26 +0100 annna-add-hashtag: fix resorting the list when adding a hashtag Diffstat: M annna-add-hashtag | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/annna-add-hashtag b/annna-add-hashtag @@ -87,7 +87,7 @@ inserttag() { printf "%s %s\n" "${tag}" "${memecacheuri}" >> "${hashtagdb}" printf "tag '%s' added as '%s' to hashtags db.\n" "${tag}" "${memecacheuri}" >&2 - sort "${hashtagdb}" > "${hashtagdb}.sort" + sort -t ' ' -k1,1 "${hashtagdb}" > "${hashtagdb}.sort" mv "$hashtagdb.sort" "${hashtagdb}" # keep permissions shared. chown ':bitreich' "${hashtagdb}"