Skip to content

Commit a6e2b12

Browse files
clr2of8Carrie Roberts
andauthored
fix for file not found issue (#206)
Co-authored-by: Carrie Roberts <clr2of8@example.com>
1 parent 3a5cc29 commit a6e2b12

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Private/Invoke-ExecuteCommand.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,9 @@ function Invoke-ExecuteCommand ($finalCommand, $executor, $executionPlatform, $T
5353
# Write-Host -ForegroundColor Magenta "$execExe $arguments"
5454
if ($session) {
5555
$scriptParentPath = Split-Path $import -Parent
56+
$publicPath = Join-Path (Split-Path $scriptParentPath -Parent) "Public"
5657
$fp = Join-Path $scriptParentPath "Invoke-Process.ps1"
57-
$fp2 = Join-Path $scriptParentPath "Invoke-KillProcessTree.ps1"
58+
$fp2 = Join-Path $publicPath "Invoke-KillProcessTree.ps1"
5859
invoke-command -Session $session -FilePath $fp
5960
invoke-command -Session $session -FilePath $fp2
6061
$res = invoke-command -Session $session -ScriptBlock { Invoke-Process -filename $Using:execExe -Arguments $Using:arguments -TimeoutSeconds $Using:TimeoutSeconds -stdoutFile "art-out.txt" -stderrFile "art-err.txt" }

0 commit comments

Comments
 (0)