Update test.ps1
This commit is contained in:
3
test.ps1
3
test.ps1
@@ -216,7 +216,8 @@ function Invoke-ServiceImagePathAudit {
|
||||
# Fallback: if we can't confidently isolate an exe, quote the whole string
|
||||
# (better than producing broken quotes)
|
||||
$badKey = "Yes"
|
||||
$fixed = '"' + $trim.Trim('"') + '"'
|
||||
$fixed = '"' + $exe + '"' + ($(if ($null -ne $args) { $args } else { '' }))
|
||||
#PoSH 7 -> $fixed = '"' + $trim.Trim('"') + '"'
|
||||
}
|
||||
|
||||
$outObj | Add-Member NoteProperty BadKey $badKey -Force
|
||||
|
||||
Reference in New Issue
Block a user