From 6267810f3a90de93a0cd80b0770ceb2e9aba4027 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Fri, 13 Dec 2019 06:21:36 +0530 Subject: [PATCH] docker/windows: Fix 7zip extract command for MSYS2 -Wait is only needed for Start-Process. Also, explicitly extract the tar file into C:\ -- don't assume the current directory is C:\ --- docker/windows/install_toolchain.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/windows/install_toolchain.ps1 b/docker/windows/install_toolchain.ps1 index 67bf1ff9d9..cebacce6bf 100644 --- a/docker/windows/install_toolchain.ps1 +++ b/docker/windows/install_toolchain.ps1 @@ -30,7 +30,7 @@ Remove-Item C:\7z-x64.exe -Force Write-Host "Installing MSYS2 into C:/msys64" Invoke-WebRequest -Uri $msys2_url -OutFile C:\msys2-x86_64.tar.xz -C:\7zip\7z e C:\msys2-x86_64.tar.xz -Wait +C:\7zip\7z e C:\msys2-x86_64.tar.xz -o"C:\\" C:\7zip\7z x C:\msys2-x86_64.tar -o"C:\\" Remove-Item C:\msys2-x86_64.tar.xz -Force Remove-Item C:\msys2-x86_64.tar -Force