fix(lib): bad argument to Start-Process cmdlet

This commit is contained in:
Erica Marigold 2024-11-25 11:43:15 +00:00
parent 2c759140c9
commit 65b150e247

View file

@ -120,7 +120,7 @@ function CommandBuilder.intoChildProcess(self: CommandBuilder): ChildProcess
for _ = 0, retries do for _ = 0, retries do
local spawned = process.spawn( local spawned = process.spawn(
if process.os == "windows" if process.os == "windows"
then `(Start-Process {self.program} -Passthru -Wait -ExecutionPolicy Bypass -NoNewWindow -ArgumentList \"{argsList}\").Id` then `(Start-Process {self.program} -Passthru -Wait -NoNewWindow -ArgumentList \"{argsList}\").Id`
else `{self.program} {argsList} & echo $!`, else `{self.program} {argsList} & echo $!`,
{}, {},
{ {