diff --git a/PSUtil/PSUtil.psd1 b/PSUtil/PSUtil.psd1 index daf47bd..deca3f5 100644 --- a/PSUtil/PSUtil.psd1 +++ b/PSUtil/PSUtil.psd1 @@ -4,7 +4,7 @@ # Version number of this module. - ModuleVersion = '2.2.38' + ModuleVersion = '2.2.39' # ID used to uniquely identify this module GUID = '9ef51588-c40c-4064-910d-9b624b758cf6' diff --git a/PSUtil/changelog.md b/PSUtil/changelog.md index acdc59d..b4ea46f 100644 --- a/PSUtil/changelog.md +++ b/PSUtil/changelog.md @@ -1,5 +1,9 @@ # Changelog +## 2.2.39 (2025-05-31) + ++ Fix: Remove-PSUDirectory - stops asking whether you want to remove recursively, even after confirming execution + ## 2.2.38 (2025-05-31) + New: Remove-PSUDirectory - Removes the current directory and moves the console to the parent folder. diff --git a/PSUtil/functions/explorer/Remove-PSUDirectory.ps1 b/PSUtil/functions/explorer/Remove-PSUDirectory.ps1 index 3973e6b..eb3f23e 100644 --- a/PSUtil/functions/explorer/Remove-PSUDirectory.ps1 +++ b/PSUtil/functions/explorer/Remove-PSUDirectory.ps1 @@ -53,7 +53,7 @@ if ($Force -or (Test-PSFShouldProcess -Target $location -ActionString 'PSUtil.Remove-PSUDirectory.RemoveItem' -ActionStringValues $children.Count, $location -PSCmdlet $PSCmdlet)) { Set-Location -Path '..' - Remove-Item -LiteralPath $location -Force -Confirm:$false + Remove-Item -LiteralPath $location -Force -Confirm:$false -Recurse } } }