From a4e016a8f33c76c963df256d47d8b78cb1a80d74 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Mon, 12 Mar 2018 07:29:02 -0700 Subject: [PATCH] fix for trailing whitespace in accounts line --- mutt-wizard.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mutt-wizard.sh b/mutt-wizard.sh index 7fb5413..18ee806 100755 --- a/mutt-wizard.sh +++ b/mutt-wizard.sh @@ -183,7 +183,7 @@ addAccount() { echo "macro index,pager i$idnum 'source "$muttdir"accounts/$title.muttrc!'" >> "$muttdir"personal.muttrc # Add to offlineimaprc sync list. - sed -i "s/^accounts =.*[a-zA-Z]$/&, $title/g;s/^accounts =$/accounts = $title/g" ~/.offlineimaprc + sed -i "s/^accounts =.*[a-zA-Z]$/&, $title/g;s/^accounts =\s*$/accounts = $title/g" ~/.offlineimaprc # Makes account default if there is no default account. grep "$muttdir"personal.muttrc -e "^source .*accounts.*" >/dev/null && echo there || \