From 094d49791ee92d7097387a298258b14cb64ba2fb Mon Sep 17 00:00:00 2001 From: Ryan Yates Date: Tue, 12 Nov 2019 22:51:17 +0000 Subject: [PATCH] Adds examples to `install-powershell.ps1` script (#11024) --- tools/install-powershell.ps1 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/install-powershell.ps1 b/tools/install-powershell.ps1 index 239ac47eeb..fb82e031f5 100644 --- a/tools/install-powershell.ps1 +++ b/tools/install-powershell.ps1 @@ -17,6 +17,12 @@ On Windows, add the absolute destination path to the 'User' scope environment variable 'Path'; On Linux, make the symlink '/usr/bin/pwsh' points to "$Destination/pwsh"; On MacOS, make the symlink '/usr/local/bin/pwsh' points to "$Destination/pwsh". +.EXAMPLE + Install the daily build + .\install-powershell.ps1 -Daily +.EXAMPLE + Invoke this script directly from GitHub + Invoke-Expression "& { $(Invoke-RestMethod 'https://aka.ms/install-powershell.ps1') } -daily" #> [CmdletBinding(DefaultParameterSetName = "Daily")] param(