From 4bb3588d5b9e37a944772fde6af9a1021f8a1e79 Mon Sep 17 00:00:00 2001 From: Joey Aiello Date: Mon, 15 May 2017 15:16:50 -0700 Subject: [PATCH] fix formatting --- How-to-retrieve-links-to-latest-packages.md | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) 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