summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2018-03-12 07:29:02 -0700
committerLuke Smith <luke@lukesmith.xyz>2018-03-12 07:29:02 -0700
commita4e016a8f33c76c963df256d47d8b78cb1a80d74 (patch)
tree9aa2bb8d27822c023ccfbdfab5265b0da33d5723
parent7dacd6a99a24c638b0e11c326bc35bad9de0de68 (diff)
fix for trailing whitespace in accounts line
-rwxr-xr-xmutt-wizard.sh2
1 files changed, 1 insertions, 1 deletions
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 '<sync-mailbox><enter-command>source "$muttdir"accounts/$title.muttrc<enter><change-folder>!<enter>'" >> "$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 || \