From 788473940c356021acb7036175fdeab725eff4e6 Mon Sep 17 00:00:00 2001 From: Matthew R Johnson Date: Tue, 8 Oct 2019 20:31:54 +0100 Subject: [PATCH] Check pwsh daily version on Windows 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 42d56384c04..dab91b1b948 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] }