Files
Dery Ferdikaanddebpalash 71befeaaa9 fix(uninstall): refuse to delete the home directory or a parent of it (#4436)
* fix(uninstall): refuse to delete the home directory or a parent of it

OMNIVOICE_DATA_DIR and the cache overrides are honoured verbatim, so -Yes/--yes removed whatever folder they named - including \C:\Users\deryf itself. Both scripts now check each deletion target first and skip the home directory, any parent of it, and a filesystem root.

* fix(uninstall): refuse an alias of the filesystem root (#4436)

"/usr/.." resolves to "/", whose parent pattern "//*" matched nothing,
so the guard let rm -rf receive it. Regression cases shadow rm and du on
PATH, so a regressed guard still deletes nothing.

---------

Co-authored-by: debpalash <4178343+debpalash@users.noreply.github.com>
2026-11-25 13:30:58 +05:30
..