Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 6405a2b

Browse files
committed
Force EA stop if pwsh not found
1 parent e4e73cb commit 6405a2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vscode-powershell.build.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ task Prerequisites {
4646
function Assert-Pwsh ([Version]$RequiredPowerShellVersion) {
4747
$ErrorActionPreference = 'Continue'
4848
try {
49-
[Version]$pwshVersion = (Get-Command -Name pwsh -CommandType Application)
49+
[Version]$pwshVersion = (Get-Command -Name pwsh -CommandType Application -ErrorAction Stop)
5050
| Sort-Object Version -Descending
5151
| Select-Object -First 1
5252
| ForEach-Object Version

0 commit comments

Comments
 (0)