From 6fb86bf85538f35585aa0eb3f6b632a52879eb30 Mon Sep 17 00:00:00 2001 From: Gal Szkolnik Date: Tue, 29 Jun 2021 10:45:29 -0400 Subject: [PATCH] =Bug fix in SessionData for Windows --- Setup-ScriptEnv.ps1 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Setup-ScriptEnv.ps1 b/Setup-ScriptEnv.ps1 index 8562d67..49f9ba0 100644 --- a/Setup-ScriptEnv.ps1 +++ b/Setup-ScriptEnv.ps1 @@ -61,8 +61,7 @@ class SessionData { $_ -split '_' | Select-Object -Last 1 } | Where-Object { $_ -notin ('agent') } | - Select-Object -First 1 | - Out-String + Select-Object -First 1 } else { $local:p = Get-Process -PID $global:PID $local:t_p = $null