Skip to content

Commit

Permalink
Check pwsh.exe and pwsh in daily version on Windows (PowerShell#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
centreboard authored and kilasuit committed Oct 31, 2019
1 parent 183594f commit 092f594
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/install-powershell.ps1
Expand Up @@ -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]
}
Expand Down

0 comments on commit 092f594

Please sign in to comment.