[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH v3 10/10] Collapse skipped template lines
This is needed to correctly generate multiline INF directives. Signed-off-by: Tu Dinh <ngoc-tu.dinh@xxxxxxxxxx> --- scripts/genfiles.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/genfiles.ps1 b/scripts/genfiles.ps1 index 5b99728..79abf1e 100644 --- a/scripts/genfiles.ps1 +++ b/scripts/genfiles.ps1 @@ -32,7 +32,9 @@ Function Copy-FileWithReplacements { Write-Host "Skipping Line Containing " $_.Name $line = $null } - $line = $line -replace $key, $_.Value + if ($null -ne $line) { + $line = $line -replace $key, $_.Value + } } $line } | -- 2.50.1.windows.1 Ngoc Tu Dinh | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |