Update Invoke-WebRequest to Start-BitsTransfer

To run `Invoke-WebRequest` you have to have the Internet Explorer Feature enabled, which some people may not.
`Start-BitsTransfer` is a drop in replacement which doesn't need you to have internet explorer enabled.
This commit is contained in:
tim bangma 2020-04-27 21:41:34 -04:00 committed by GitHub
parent 32721bbc83
commit 073351a02a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,7 +45,7 @@ Set-ExecutionPolicy RemoteSigned
Then, you can run:
```ps
Invoke-WebRequest https://git.io/rustlings-win | Select-Object -ExpandProperty Content | Out-File $env:TMP/install_rustlings.ps1; Unblock-File $env:TMP/install_rustlings.ps1; Invoke-Expression $env:TMP/install_rustlings.ps1
Start-BitsTransfer https://git.io/rustlings-win | Select-Object -ExpandProperty Content | Out-File $env:TMP/install_rustlings.ps1; Unblock-File $env:TMP/install_rustlings.ps1; Invoke-Expression $env:TMP/install_rustlings.ps1
```
To install Rustlings. Same as on MacOS/Linux, you will have access to the `rustlings` command after it.