From a799ffb1577e22f81cd55b7eda2b34e87708d621 Mon Sep 17 00:00:00 2001
From: Luke Smith <luke@lukesmith.xyz>
Date: Wed, 17 Apr 2019 15:42:00 -0400
Subject: big fix

---
 mw | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mw b/mw
index 32cb6fc..8a42743 100755
--- a/mw
+++ b/mw
@@ -174,7 +174,7 @@ EOF
 	echo "macro index,pager i$idnum '<sync-mailbox><enter-command>source $accdir/$title.muttrc<enter><change-folder>!<enter>;<check-stats>'" >> "$muttdir/personal.muttrc"
 	! grep "^source.*.muttrc" "$muttdir/personal.muttrc" >/dev/null && echo "source $accdir/$title.muttrc" >> "$muttdir/personal.muttrc"
 	trysync && finalize
-	[ "$accounttype" = "offline" ] && sed -i "/IMAPAccount $title$/,/# End profile/d" "$mbsyncrc"
+	[ "$accounttype" = "offline" ] || sed -i "/IMAPAccount $title$/,/# End profile/d" "$mbsyncrc"
 }
 
 getpass() { \
-- 
cgit v1.2.3