Skip to content

Commit 70d6d9c

Browse files
hpsbrancor15ch13
authored andcommitted
install: Fix bug with Start-Process -Wait, exclusive to PowerShell Core on Windows 7 (#3415)
Close: #2580 See: PowerShell/PowerShell#6561
1 parent 7fa8a69 commit 70d6d9c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/install.ps1

+4-1
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,10 @@ function run($exe, $arg, $msg, $continue_exit_codes) {
696696
$parameters.arg = $arg;
697697
}
698698

699-
$proc = start-process $exe -wait -ea stop -passthru @parameters
699+
# Don't use Start-Process -Wait
700+
# https://github.com/PowerShell/PowerShell/issues/6561
701+
$proc = start-process $exe -ea stop -passthru @parameters
702+
$proc | Wait-Process
700703

701704

702705
if($proc.exitcode -ne 0) {

0 commit comments

Comments
 (0)