Skip to content

Commit

Permalink
powershell workaround for hab studio rm with powershell 7.5 and older…
Browse files Browse the repository at this point in the history
… windows os

Signed-off-by: Matt Wrock <[email protected]>
  • Loading branch information
mwrock committed Jan 11, 2025
1 parent 03ac78e commit 94d3777
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/studio/bin/hab-studio.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,8 @@ function Remove-Studio {
} else {
if(Test-Path $HAB_STUDIO_ROOT) {
Write-HabInfo "Destroying Studio at $HAB_STUDIO_ROOT"
Remove-Item $HAB_STUDIO_ROOT -Recurse -Force
Get-ChildItem $HAB_STUDIO_ROOT -Recurse | Remove-Item -force -Recurse
Remove-Item $HAB_STUDIO_ROOT
}
}
}
Expand Down

0 comments on commit 94d3777

Please sign in to comment.