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

Commit 842f6ad

Browse files
ThePoShWolfalerickson
authored andcommitted
Now removes the PSGet_ prepended to line 2 in the updated manifest. (#403)
1 parent ae64a80 commit 842f6ad

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/PowerShellGet/public/psgetfunctions/Update-ModuleManifest.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -941,6 +941,9 @@ function Update-ModuleManifest
941941

942942
$newContent = Microsoft.PowerShell.Management\Get-Content -Path $tempPath
943943

944+
#Remove the PSGet_ prepended to the original manifest name due to the temp file name
945+
$newContent[1] = $newContent[1] -replace "'PSGet_", "'"
946+
944947
try
945948
{
946949
#Ask for confirmation of the new manifest before replacing the original one

0 commit comments

Comments
 (0)