Skip to content
This repository was archived by the owner on Jun 13, 2024. It is now read-only.

Commit dd72df5

Browse files
committed
Fix PrivateData value getting removed
1 parent feba850 commit dd72df5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

PowerShellGet/public/psgetfunctions/Update-ScriptFileInfo.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,11 @@ function Update-ScriptFileInfo
295295
{
296296
$ReleaseNotes = $psscriptInfo.ReleaseNotes
297297
}
298+
299+
if(-not $PrivateData -and $psscriptInfo.PrivateData)
300+
{
301+
$PrivateData = $psscriptInfo.PrivateData
302+
}
298303
}
299304

300305
$params = @{

0 commit comments

Comments
 (0)