修复发布路径检查的空环境变量参数错误

This commit is contained in:
xuans committed 2026-09-20 20:54:07 +08:00
1 parent 1fbd26e031
commit e25e840930
2 files changed
+4 -1

No files matched your search

+2 -1
View File
@@ -425,7 +425,8 @@ try {
}
}
Test-ReleasePaths -Source $targetDirectory -Binaries $binaries -ForbiddenPaths $forbiddenPaths
$checkedPaths = @($forbiddenPaths | Where-Object { -not [string]::IsNullOrWhiteSpace($_) } | Select-Object -Unique)
Test-ReleasePaths -Source $targetDirectory -Binaries $binaries -ForbiddenPaths $checkedPaths
Write-TargetChecksums -TargetDirectory $targetDirectory | Out-Null
foreach ($file in (Get-ChildItem -LiteralPath $targetDirectory -Recurse -File | Sort-Object FullName)) {
$hash = Get-FileHash -LiteralPath $file.FullName -Algorithm SHA256