From 54fd7d805da3da26aa23cabd1cfa566cddd73571 Mon Sep 17 00:00:00 2001 From: centreboard Date: Thu, 10 Oct 2019 20:37:35 +0100 Subject: [PATCH] Check `pwsh.exe` and `pwsh` in daily version on Windows (#10738) Improves on #10489 --- tools/install-powershell.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/install-powershell.ps1 b/tools/install-powershell.ps1 index 42d56384c0..dab91b1b94 100644 --- a/tools/install-powershell.ps1 +++ b/tools/install-powershell.ps1 @@ -249,7 +249,7 @@ try { $blobName = $metadata.BlobName # Get version from currently installed PowerShell Daily if available. - $pwshPath = Join-Path $Destination "pwsh" + $pwshPath = if ($IsWinEnv) {Join-Path $Destination "pwsh.exe"} else {Join-Path $Destination "pwsh"} $currentlyInstalledVersion = if(Test-Path $pwshPath) { ((& $pwshPath -version) -split " ")[1] }