mirror of
https://github.com/PowerShell/Win32-OpenSSH.git
synced 2025-07-30 17:35:00 +02:00
fix formatting
parent
4aafe04165
commit
4bb3588d5b
@ -1,8 +1,10 @@
|
|||||||
####Follow these Powershell steps to retrieve links to latest packages:
|
Follow these PowerShell steps to retrieve links to the latest Win32-OpenSSH packages:
|
||||||
|
|
||||||
`$url = 'https://github.com/PowerShell/Win32-OpenSSH/releases/latest/'`
|
```powershell
|
||||||
`$request = [System.Net.WebRequest]::Create($url)`
|
$url = 'https://github.com/PowerShell/Win32-OpenSSH/releases/latest/'
|
||||||
`$request.AllowAutoRedirect=$false`
|
$request = [System.Net.WebRequest]::Create($url)
|
||||||
`$response=$request.GetResponse()`
|
$request.AllowAutoRedirect=$false
|
||||||
`$([String]$response.GetResponseHeader("Location")).Replace('tag','download') + '/OpenSSH-Win64.zip'`
|
$response=$request.GetResponse()
|
||||||
`$([String]$response.GetResponseHeader("Location")).Replace('tag','download') + '/OpenSSH-Win32.zip'`
|
$([String]$response.GetResponseHeader("Location")).Replace('tag','download') + '/OpenSSH-Win64.zip'
|
||||||
|
$([String]$response.GetResponseHeader("Location")).Replace('tag','download') + '/OpenSSH-Win32.zip'
|
||||||
|
```
|
Loading…
x
Reference in New Issue
Block a user