diff --git a/How-to-retrieve-links-to-latest-packages.md b/How-to-retrieve-links-to-latest-packages.md index 953f86e..9d5d022 100644 --- a/How-to-retrieve-links-to-latest-packages.md +++ b/How-to-retrieve-links-to-latest-packages.md @@ -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/'` -`$request = [System.Net.WebRequest]::Create($url)` -`$request.AllowAutoRedirect=$false` -`$response=$request.GetResponse()` -`$([String]$response.GetResponseHeader("Location")).Replace('tag','download') + '/OpenSSH-Win64.zip'` -`$([String]$response.GetResponseHeader("Location")).Replace('tag','download') + '/OpenSSH-Win32.zip'` \ No newline at end of file +```powershell +$url = 'https://github.com/PowerShell/Win32-OpenSSH/releases/latest/' +$request = [System.Net.WebRequest]::Create($url) +$request.AllowAutoRedirect=$false +$response=$request.GetResponse() +$([String]$response.GetResponseHeader("Location")).Replace('tag','download') + '/OpenSSH-Win64.zip' +$([String]$response.GetResponseHeader("Location")).Replace('tag','download') + '/OpenSSH-Win32.zip' +``` \ No newline at end of file