浏览代码

fix cronjob removed on purge (#269)

tags/v3.1
mkomo 5 年前
committed by Luke Smith
父节点
当前提交
856eea6d71
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. +1
    -0
      bin/mw

+ 1
- 0
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
}


正在加载...
取消
保存