Merge pull request #1070 from alimalkhalifa/installer/support_powershell2

Updated installer to support powershell older than 3.0
This commit is contained in:
Chris Miles 2020-05-25 18:38:14 -05:00 committed by GitHub
commit a3874b5252
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -705,7 +705,7 @@ sub get_windows_wget {
if (!-d "bin") {
mkdir("bin");
}
`powershell -Command "\$ProgressPreference = 'SilentlyContinue'; Invoke-RestMethod -ContentType \"application/octet-stream\" -Uri https://raw.githubusercontent.com/Akkadius/eqemu-install-v2/master/windows/wget.exe -OutFile bin/wget.exe"`
`powershell -Command "(New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/Akkadius/eqemu-install-v2/master/windows/wget.exe', 'bin\\wget.exe') "`
}
}