Skip to content

Commit 1482d27

Browse files
authored
fix install crashing when $script:ErrorActionPreference='Stop' (#6491)
Signed-off-by: Andrew Richesson <[email protected]>
1 parent d502493 commit 1482d27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/install.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ $binDir = "$HOME\bin"
1111
$dest = "$binDir\tilt.exe"
1212

1313
$useScoop = ""
14-
if (Get-Command "scoop" 2>$null) {
14+
if (Get-Command "scoop" -ErrorAction Ignore) {
1515
$useScoop = "true"
1616
}
1717

0 commit comments

Comments
 (0)