From 0a408847d1ba02d8152d17c0b1b9abe4ee0083ad Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Wed, 15 Aug 2018 08:31:29 -0400 Subject: [PATCH] sort -u the alias file so more than one of the exact same alias doesn't get added. --- fleacollar.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fleacollar.sh b/fleacollar.sh index 83633b6..1d9ce09 100755 --- a/fleacollar.sh +++ b/fleacollar.sh @@ -427,7 +427,7 @@ new_contact() [[ "$(yesno "$(gettext "This email address already exists in your contacts. Continue anyway?")")" != "Yes" ]] && exit 0 fi echo "alias $contactAlias $contactName <$contactEmail>" >> "$muttHome/aliases" - sort "$muttHome/aliases" -o "$muttHome/aliases" + sort -u "$muttHome/aliases" -o "$muttHome/aliases" msgbox "$contactName $(gettext "added to your address book")." }