Minor fix

This commit is contained in:
Vladimir Safonkin
2020-03-20 16:10:58 +03:00
parent 7720b74a00
commit 418d16888f

View File

@@ -21,9 +21,7 @@ Write-Host "Finished download"
$msys2FileU = "/$msys2File".replace(':', '') $msys2FileU = "/$msys2File".replace(':', '')
# git has tar.exe in usr/bin, but xz.exe is in mingw64/bin $tar = "$gitPath\usr\bin\tar.exe"
$env:PATH = "$gitPath\mingw64\bin;$origPath"
$tar = "$gitPath\usr\bin\tar.exe"
# extract tar.xz to C:\ # extract tar.xz to C:\
Write-Host "Starting msys2 extraction" Write-Host "Starting msys2 extraction"
@@ -34,10 +32,10 @@ Write-Host "Finished extraction"
# Add msys2 bin tools folders to PATH # Add msys2 bin tools folders to PATH
$env:PATH = "C:\msys64\mingw64\bin;C:\msys64\usr\bin;$origPath" $env:PATH = "C:\msys64\mingw64\bin;C:\msys64\usr\bin;$origPath"
Write-Host "bash -c pacman-key --init" Write-Host "bash pacman-key --init"
bash.exe "pacman-key --init 2>&1" bash.exe "pacman-key --init 2>&1"
Write-Host "bash -c pacman-key --populate msys2" Write-Host "bash pacman-key --populate msys2"
bash.exe "pacman-key --populate msys2 2>&1" bash.exe "pacman-key --populate msys2 2>&1"
Write-Host "pacman --noconfirm -Syyuu" Write-Host "pacman --noconfirm -Syyuu"