From 74f193248f81353d2a4c9604e745fd572af3cdbf Mon Sep 17 00:00:00 2001 From: Roland Puntaier Date: Sat, 31 Aug 2019 18:19:05 +0200 Subject: [PATCH] fix: rm -rf $HOME if ~/.mbsyncrc when $XDG_CONFIG_HOME not defined --- bin/mw | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/mw b/bin/mw index ec0b300..e64b550 100755 --- a/bin/mw +++ b/bin/mw @@ -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."