Browse Source

list no extra space if empty

tags/v3.1
Luke Smith 5 years ago
parent
commit
f9bc254abd
No known key found for this signature in database GPG Key ID: 4C50B54A911F6252
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      bin/mw

+ 1
- 1
bin/mw View File

@@ -13,7 +13,7 @@ mwconfig="$muttdir/mutt-wizard.muttrc"
muttrc="$muttdir/muttrc" muttrc="$muttdir/muttrc"


getaccounts() { accounts="$(find "$accdir" -type f | grep -o "[0-9]-.*.muttrc" | sed "s/-/: /g;s/\..*//" | sort -n)" ;} 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() { \ getprofiles() { \
unset msmtp_header msmtp_profile mutt_profile mbsync_profile unset msmtp_header msmtp_profile mutt_profile mbsync_profile


Loading…
Cancel
Save