mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Check pwsh.exe and pwsh in daily version on Windows (#10738)
Improves on #10489
This commit is contained in:
committed by
Travis Plunk
parent
b425648f69
commit
54fd7d805d
@@ -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]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user