瀏覽代碼

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
}


Loading…
取消
儲存