Skip to content

Commit

Permalink
Merge pull request #9561 from habitat-sh/remove_item
Browse files Browse the repository at this point in the history
powershell workaround for hab studio rm with powershell 7.5 and older windows os
  • Loading branch information
mwrock authored Jan 11, 2025
2 parents 4b3996e + 9980b43 commit 064655e
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 064655e

Please sign in to comment.