Skip to content

Commit 64180bc

Browse files
committed
Process incoming string for CloseApps rather than boundParameter value
1 parent 342be7e commit 64180bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PSAppDeployToolkit.Tools/PSScriptAnalyzer/Measure-ADTCompatibility.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1876,7 +1876,7 @@ function Measure-ADTCompatibility
18761876
'AllowDeferCloseApps' = '-AllowDeferCloseProcesses' # Should inspect switch values here in case of -Switch:$false
18771877
'CloseApps' = {
18781878
$quoteChar = if ($boundParameters.CloseApps.Value.StringConstantType -eq 'DoubleQuoted') { '"' } else { "'" }
1879-
$closeProcesses = $boundParameters.CloseApps.Value.Value -split ',' | & {
1879+
$closeProcesses = $_.Trim('"').Trim("'") -split ',' | & {
18801880
process
18811881
{
18821882
$name, $description = $_ -split '='

0 commit comments

Comments
 (0)