Create the folder before copying the global tools (#13476)

This commit is contained in:
Aditya Patwardhan authored and GitHub committed 2020-08-19 13:12:16 -07:00
1 parent 98dbaefcd6
commit 10fdfc4ac6
1 file changed
+2 -2
@@ -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