From 79e134c6b0ae0181fcba1b1dccf36a8d2d51d76b Mon Sep 17 00:00:00 2001 From: mkomod Date: Mon, 12 Aug 2019 15:23:32 +0300 Subject: [PATCH] fix cronjob removed on purge --- bin/mw | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/mw b/bin/mw index 2499318..8712bf0 100755 --- a/bin/mw +++ b/bin/mw @@ -293,6 +293,7 @@ asktype() { while : ; do purge() { confirm "delete all account data" || exit rm -rf "$mbsyncrc" "$accdir" "$HOME/.config/msmtp" "$cachedir" + crontab -l | sed '/mailsync/d' | crontab - >/dev/null echo "All configs and account settings have been purged." sed -ibu "/\# mw-autogenerated/d" "$muttrc" ; rm -f "$muttrc"bu }