summaryrefslogtreecommitdiff
path: root/mw
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2019-04-19 19:20:20 -0400
committerLuke Smith <luke@lukesmith.xyz>2019-04-19 19:20:20 -0400
commit7f007a7aab412231db258060a30ce0a837f80949 (patch)
treea80d9d023331456970ecc99d7df98aaca3347579 /mw
parentcc4f01090f1e35cda9cf279fd9ef54d387bab1f7 (diff)
remove msbync profile for online accounts after -l
Diffstat (limited to 'mw')
-rwxr-xr-xmw1
1 files changed, 1 insertions, 0 deletions
diff --git a/mw b/mw
index 0314dc5..a4afceb 100755
--- a/mw
+++ b/mw
@@ -188,6 +188,7 @@ trysync() { \
else
printf "\033[31m\033[31mSync not successful.\033[0m Try running \`mbsync %s\` manually after double-checking your password and server settings.\\nThen select to finalize the account.\\n" "$title"; return 1
fi
+ [ "$accounttype" = "online" ] && sed -i "/IMAPStore $title-remote$/,/# End profile/d" "$mbsyncrc"
}
finalize() { \