mutt-wizard

fork of Luke Smiths mutt-wizard
git clone git://git.jakekoroman.com/mutt-wizard
Log | Files | Refs | README | LICENSE

commit f9bc254abda7d94bab9cc0d989226ba2d4884413
parent c6dbd74f403f8d29ea3970fdb77658c528a0ae32
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Mon, 22 Apr 2019 13:11:27 -0400

list no extra space if empty

Diffstat:
Mbin/mw | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/mw b/bin/mw @@ -13,7 +13,7 @@ mwconfig="$muttdir/mutt-wizard.muttrc" muttrc="$muttdir/muttrc" getaccounts() { accounts="$(find "$accdir" -type f | grep -o "[0-9]-.*.muttrc" | sed "s/-/: /g;s/\..*//" | sort -n)" ;} -list() { getaccounts && echo "$accounts" ;} +list() { getaccounts && [ -n "$accounts" ] && echo "$accounts" ;} getprofiles() { \ unset msmtp_header msmtp_profile mutt_profile mbsync_profile