fix cronjob removed on purge (#269)

This commit is contained in:
mkomo 2019-08-12 21:13:06 +03:00 committed by Luke Smith
parent a244df88ef
commit 856eea6d71

1
bin/mw
View File

@ -293,6 +293,7 @@ asktype() { while : ; do
purge() { confirm "delete all account data" || exit purge() { confirm "delete all account data" || exit
rm -rf "$mbsyncrc" "$accdir" "$HOME/.config/msmtp" "$cachedir" 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." echo "All configs and account settings have been purged."
sed -ibu "/\# mw-autogenerated/d" "$muttrc" ; rm -f "$muttrc"bu sed -ibu "/\# mw-autogenerated/d" "$muttrc" ; rm -f "$muttrc"bu
} }