提交 42495e77 编写于 作者: J Jason Malinowski

Fix handling around empty PublicAPI.txt files

上级 81af1993
......@@ -14,16 +14,18 @@ function MarkShipped([string]$dir) {
Write-Host "Processing $dir"
foreach ($item in $unshipped) {
if ($item.StartsWith($removedPrefix)) {
$item = $item.Substring($removedPrefix.Length)
$removed += $item
}
else {
$shipped += $item
if ($item.Length -gt 0) {
if ($item.StartsWith($removedPrefix)) {
$item = $item.Substring($removedPrefix.Length)
$removed += $item
}
else {
$shipped += $item
}
}
}
$shipped | Sort-Object | ?{ -not $removed.Contains($_) } | Out-File $shippedFilePath -Encoding Ascii
$shipped | Sort-Object | ?{ -not $removed.Contains($_) } | Out-File $shippedFilePath -Encoding Ascii
"" | Out-File $unshippedFilePath -Encoding Ascii
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册