fix(uninstall.ps1): drop the empty ~/.unsloth left behind on WoA uninstall
The empty-dir sweep of ~/.unsloth ran before the WoA-fallback block removes ~/.unsloth\unsloth.ico, so on a Windows-on-ARM install the still-present icon kept the dir non-empty at sweep time and it was skipped -- leaving an empty ~/.unsloth behind after a full uninstall. Re-attempt the empty-only removal right after the icon is deleted (the last default-mode child). uninstall.sh is unaffected: its rmdir runs as the final step.
This commit is contained in:
parent
0a2b94de71
commit
fbb2d9000f
1 changed files with 7 additions and 0 deletions
|
|
@ -461,6 +461,13 @@ function Uninstall-UnslothStudio {
|
|||
}
|
||||
# The WoA shortcut icon lives under the user profile (icon broker can't read AppData\Local).
|
||||
if ($env:USERPROFILE) { _RemovePath (Join-Path $env:USERPROFILE ".unsloth\unsloth.ico") }
|
||||
# The empty-dir sweep of ~/.unsloth above ran BEFORE this icon removal, so on a WoA install
|
||||
# the still-present unsloth.ico kept ~/.unsloth non-empty then and it was skipped -- leaving an
|
||||
# empty ~/.unsloth behind. Re-attempt now that the icon (the last default-mode child) is gone.
|
||||
if ($defaultUnslothHome -and (Test-Path -LiteralPath $defaultUnslothHome) -and
|
||||
-not (Get-ChildItem -LiteralPath $defaultUnslothHome -Force -ErrorAction SilentlyContinue)) {
|
||||
_RemovePath $defaultUnslothHome
|
||||
}
|
||||
# Remove the Studio install inside each WSL distro (the real GPU install + any CUDA llama.cpp build).
|
||||
if (Get-Command wsl.exe -ErrorAction SilentlyContinue) {
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue