Browse Source

fix: rm -rf $HOME if ~/.mbsyncrc when $XDG_CONFIG_HOME not defined

pull/276/head
Roland Puntaier 5 years ago
parent
commit
74f193248f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      bin/mw

+ 1
- 1
bin/mw View File

@@ -367,7 +367,7 @@ asktype() {

mwpurge() {
confirm "delete all account data" || exit
rm -rf "$mwmbsyncrc" "$mwaccrcdir" "$mwconfigdir/msmtp" "${mwmbsyncrc%/*}" "$mwcachedir"
rm -rf "$mwmbsyncrc" "$mwaccrcdir" "$mwconfigdir/msmtp" "$mwcachedir"
pgrep cron >/dev/null && crontab -l | sed '/mailsync/d' | crontab - >/dev/null
sed -i "/\# mw-autogenerated/d" "$mwmuttrc"
echo "All configs and account settings have been purged."


Loading…
Cancel
Save