Skip to content

Commit

Permalink
install: Fix bug with Start-Process -Wait, exclusive to PowerShell Co…
Browse files Browse the repository at this point in the history
…re on Windows 7 (#3415)

Close: #2580
See: PowerShell/PowerShell#6561
  • Loading branch information
hpsbranco authored and r15ch13 committed Apr 29, 2019
1 parent 7fa8a69 commit 70d6d9c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,10 @@ function run($exe, $arg, $msg, $continue_exit_codes) {
$parameters.arg = $arg;
}

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


if($proc.exitcode -ne 0) {
Expand Down

0 comments on commit 70d6d9c

Please sign in to comment.