diff --git a/Dockerfiles/build-base/windows/Dockerfile.agent2 b/Dockerfiles/build-base/windows/Dockerfile.agent2 index b2c97f97a..a7b870502 100644 --- a/Dockerfiles/build-base/windows/Dockerfile.agent2 +++ b/Dockerfiles/build-base/windows/Dockerfile.agent2 @@ -144,9 +144,9 @@ RUN Set-Location -Path $env:SystemDrive\.; ` gcc -v; ` ` [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; ` - Invoke-WebRequest -UseBasicParsing -uri "https://github.com/msys2/msys2-installer/releases/download/nightly-x86_64/msys2-base-x86_64-latest.sfx.exe" -OutFile msys2.exe; ` - & msys2.exe -y -o$env:SystemDrive\; ` - Remove-Item msys2.exe ; ` + Invoke-WebRequest -UseBasicParsing -uri "https://github.com/msys2/msys2-installer/releases/download/nightly-x86_64/msys2-base-x86_64-latest.sfx.exe" -OutFile $env:SystemDrive\msys2.exe; ` + & $env:TEMP\msys2.exe -y -o"""$env:SystemDrive\""" | Out-Null; ` + Remove-Item $env:SystemDrive\msys2.exe ; ` function msys() { C:\msys64\usr\bin\bash.exe @('-lc') + @Args; }; ` msys ' '; ` msys 'pacman --noconfirm -Syuu'; `