Skip to content

Commit

Permalink
fix cronjob removed on purge (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkomod authored and LukeSmithxyz committed Aug 12, 2019
1 parent a244df8 commit 856eea6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/mw
Expand Up @@ -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
}
Expand Down

0 comments on commit 856eea6

Please sign in to comment.