Skip to content

Commit 426c8d1

Browse files
committed
FIx invoke
1 parent a8c0c90 commit 426c8d1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/utils/Invoke.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
function Invoke-ScriptWithTimeout {
32
param (
43
[string]$ScriptPath,
@@ -7,8 +6,9 @@ function Invoke-ScriptWithTimeout {
76
)
87

98
$job = Start-Job -ScriptBlock {
10-
param($scriptPath, $args)
11-
& $scriptPath $args
9+
param($scriptPath, $arguments)
10+
# Properly expand the arguments when calling the script
11+
& $scriptPath @arguments
1212
} -ArgumentList $ScriptPath, $Arguments
1313

1414
$completed = Wait-Job -Job $job -Timeout $TimeoutSeconds

0 commit comments

Comments
 (0)