diff --git a/tools/releaseBuild/azureDevOps/templates/nuget.yml b/tools/releaseBuild/azureDevOps/templates/nuget.yml index 5a18354b91e..138050f5c60 100644 --- a/tools/releaseBuild/azureDevOps/templates/nuget.yml +++ b/tools/releaseBuild/azureDevOps/templates/nuget.yml @@ -164,9 +164,9 @@ jobs: artifactPath: '$(System.ArtifactsDirectory)\signed' - powershell: | - if (-not (Test-Path "$(System.ArtifactsDirectory)\signed")) + if (-not (Test-Path "$(System.ArtifactsDirectory)\signed\globaltool")) { - $null = New-Item -Path "$(System.ArtifactsDirectory)\signed\globaltool" -ItemType Directory + $null = New-Item -Path "$(System.ArtifactsDirectory)\signed\globaltool" -ItemType Directory -Force } Move-Item -Path "$(System.ArtifactsDirectory)\signed\PowerShell.*" -Destination "$(System.ArtifactsDirectory)\signed\globaltool" -Force