Fix not working install script for PS5 (#104)

Incorrect github link was used for downloading `deno` when using 'non-core' powershell
This commit is contained in:
Brecht Carlier 2020-04-04 20:41:16 +02:00 committed by GitHub
parent f163b0286f
commit 53daffe3ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,7 +45,7 @@ $DenoUri = if (!$Version) {
$HTMLFile.write($ResponseBytes) $HTMLFile.write($ResponseBytes)
} }
$HTMLFile.getElementsByTagName('a') | $HTMLFile.getElementsByTagName('a') |
Where-Object { $_.href -like "about:/denoland/deno/releases/download/*/deno_${Target}.zip" } | Where-Object { $_.href -like "about:/denoland/deno/releases/download/*/deno-${Target}.zip" } |
ForEach-Object { $_.href -replace 'about:', 'https://github.com' } | ForEach-Object { $_.href -replace 'about:', 'https://github.com' } |
Select-Object -First 1 Select-Object -First 1
} }