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

Commit d06a6b1

Browse files
authored
Change conditional statement so only dotnet or nuget is called when publishing (#497)
1 parent b48681c commit d06a6b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PowerShellGet/private/functions/Publish-PSArtifactUtility.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ function Publish-PSArtifactUtility {
422422
if ($DotnetCommandPath) {
423423
Publish-NugetPackage -NupkgPath $NupkgFullName -Destination $Destination -NugetApiKey $NugetApiKey -UseDotnetCli -Verbose:$VerbosePreference
424424
}
425-
if ($NuGetExePath) {
425+
elseif ($NuGetExePath) {
426426
Publish-NugetPackage -NupkgPath $NupkgFullName -Destination $Destination -NugetApiKey $NugetApiKey -NugetExePath $NuGetExePath -Verbose:$VerbosePreference
427427
}
428428

0 commit comments

Comments
 (0)