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

Commit 1a7b6af

Browse files
authored
Merge pull request #346 from tnieto88/fix
Fix Update-ScriptInfoFile to Preserve PrivateData
2 parents feba850 + dd72df5 commit 1a7b6af

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)