Skip to content

Commit e71e197

Browse files
fixing debug dump
1 parent 934c57d commit e71e197

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

PSFramework/PSFramework.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
RootModule = 'PSFramework.psm1'
55

66
# Version number of this module.
7-
ModuleVersion = '1.11.341'
7+
ModuleVersion = '1.11.342'
88

99
# ID used to uniquely identify this module
1010
GUID = '8028b914-132b-431f-baa9-94a6952f21ff'

PSFramework/changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
## 1.11.342 (2024-07-18)
4+
5+
- Fix: New-PSFSupportPackage - fails to delete old managed debug dumps
6+
37
## 1.11.341 (2024-07-08)
48

59
- New: Command New-PSFHashtable - returns a PsfHashtable object, a hashtable with default value option.

PSFramework/functions/utility/New-PSFSupportPackage.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@
281281
Write-PSFMessage -Level Important -String 'New-PSFSupportPackage.Modules'
282282
$hash["Modules"] = Get-Module
283283
}
284-
if ((($Include -band 512) -and -not ($Exclude -band 512)) -and (Get-Command -Name Get-PSSnapIn -ErrorAction SilentlyContinue))
284+
if ((($Include -band 512) -and -not ($Exclude -band 512)) -and ($PSVersionTable.PSVersion.Major -le 5))
285285
{
286286
Write-PSFMessage -Level Important -String 'New-PSFSupportPackage.Snapins'
287287
$hash["SnapIns"] = Get-PSSnapin
@@ -341,7 +341,7 @@
341341
}
342342
end {
343343
if ($PSCmdlet.ParameterSetName -eq 'Task') {
344-
Get-ChidItem -Path $outputPath -Force -Filter *.cliDat |
344+
Get-ChildItem -Path $outputPath -Force -Filter *.cliDat |
345345
Microsoft.PowerShell.Utility\Sort-Object LastWriteTime -Descending |
346346
Microsoft.PowerShell.Utility\Select-Object -Skip $TaskRetentionCount |
347347
Remove-Item -Force

0 commit comments

Comments
 (0)