Check pwsh.exe and pwsh in daily version on Windows (#10738)

Improves on #10489
This commit is contained in:
centreboard
2019-10-10 14:37:35 -05:00
committed by Travis Plunk
parent b425648f69
commit 54fd7d805d
+1 -1
View File
@@ -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]
}