From b64e3ed2731d2aeb10172f00513ea175f684a0bf Mon Sep 17 00:00:00 2001 From: Stephan Yelle Date: Thu, 5 Feb 2026 02:33:36 -0500 Subject: [PATCH] Update test.ps1 --- test.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test.ps1 b/test.ps1 index d948ea8..6364135 100644 --- a/test.ps1 +++ b/test.ps1 @@ -206,7 +206,8 @@ function Invoke-ServiceImagePathAudit { # Only "bad" if the exe path contains whitespace and is unquoted (it is) if ($exe -match '\s') { $badKey = "Yes" - $fixed = '"' + $exe + '"' + ($args ?? '') + $fixed = '"' + $exe + '"' + ($(if ($null -ne $args) { $args } else { '' })) + #PoSH 7 $fixed = '"' + $exe + '"' + ($args ?? '') } else { $badKey = "No" $fixed = "N/A"