cachedir deleted on purge

This commit is contained in:
Luke Smith 2019-04-22 15:52:32 -04:00
parent 2fb43d2e47
commit acc392df72
No known key found for this signature in database
GPG Key ID: 4C50B54A911F6252

2
bin/mw
View File

@ -256,7 +256,7 @@ asktype() { while : ; do
esac; done ;}
purge() { confirm "delete all account data" || exit
rm -rf "$mbsyncrc" "$accdir" "$HOME/.config/msmtp"
rm -rf "$mbsyncrc" "$accdir" "$HOME/.config/msmtp" "$cachedir"
echo "All configs and account settings have been purged."
sed -i "/\# mw-autogenerated/d" "$muttrc"
}