Skip to content

Commit 40d60ad

Browse files
committed
Fixes object output of string builder
1 parent fc0db98 commit 40d60ad

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/core/dev/Write-IcingaForWindowsComponentManifest.psm1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,17 @@ function Write-IcingaForWindowsComponentManifest()
5050
[int]$CurrentIndex = 0;
5151
foreach ($module in $Value) {
5252
$CurrentIndex += 1;
53-
$ContentString.Append('@{ ');
53+
$ContentString.Append('@{ ') | Out-Null;
5454

5555
foreach ($dependency in $module.Keys) {
5656
$DependencyValue = $module[$dependency];
5757

58-
$ContentString.Append([string]::Format("{0} = '{1}'; ", $dependency, $DependencyValue));
58+
$ContentString.Append([string]::Format("{0} = '{1}'; ", $dependency, $DependencyValue)) | Out-Null;
5959
}
60-
$ContentString.Append('}');
60+
$ContentString.Append('}') | Out-Null;
6161

6262
if ($CurrentIndex -ne $Value.Count) {
63-
$ContentString.Append(",`r`n ");
63+
$ContentString.Append(",`r`n ") | Out-Null;
6464
}
6565
}
6666

@@ -73,7 +73,7 @@ function Write-IcingaForWindowsComponentManifest()
7373
Write-IcingaFileSecure -File (Join-Path -Path $ModuleDir -ChildPath ([string]::Format('{0}.psd1', $ModuleName))) -Value $ManifestFileData;
7474
}
7575

76-
$ContentString.Clear();
76+
$ContentString.Clear() | Out-Null;
7777

7878
[array]$ManifestContent = Get-Content -Path (Join-Path -Path $ModuleDir -ChildPath ([string]::Format('{0}.psd1', $ModuleName)));
7979

0 commit comments

Comments
 (0)