|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH v4 01/18] Collapse skipped template lines
This is needed to correctly generate multiline INF directives.
Signed-off-by: Tu Dinh <ngoc-tu.dinh@xxxxxxxxxx>
---
To be applied to all repositories.
---
scripts/genfiles.ps1 | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/scripts/genfiles.ps1 b/scripts/genfiles.ps1
index 4c58f03..836f019 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 |