Skip to content

Commit 49ccfbf

Browse files
author
Maddie Clayton
authored
Update PublishModules.ps1
1 parent 6bf9c3a commit 49ccfbf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/PublishModules.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,8 @@ function Add-Module {
683683
}
684684
catch
685685
{
686-
Remove-Item $TempRepoPath/$moduleName/$($ModuleMetadata.ModuleVersion.toString()) -Force
686+
$nugetPackageName = $moduleName + "." + $ModuleMetadata.ModuleVersion.toString() + ".nupkg"
687+
Remove-Item $TempRepoPath/$nugetPackageName -Force
687688
Publish-Module -Path $Path -Repository $TempRepo -Force | Out-Null
688689
}
689690

0 commit comments

Comments
 (0)