File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -294,15 +294,15 @@ function Sync-BinScripts {
294294 Write-Host " 重名策略: $DuplicateStrategy " - ForegroundColor Cyan
295295
296296 # 1. 查找所有脚本
297- $allScripts = Find-ProjectScripts - RootPath $ProjectRoot - IgnoreList $IgnoreDirs
297+ [ object []] $allScripts = Find-ProjectScripts - RootPath $ProjectRoot - IgnoreList $IgnoreDirs
298298
299299 if ($allScripts.Count -eq 0 ) {
300300 Write-Warning " 未找到任何 .ps1 脚本。"
301301 return
302302 }
303303
304304 # 2. 应用 Patterns 过滤
305- $targetScripts = if ($Patterns.Count -gt 0 ) {
305+ [ object []] $targetScripts = if ($Patterns.Count -gt 0 ) {
306306 Write-Host " 应用过滤模式: $ ( $Patterns -join ' , ' ) " - ForegroundColor Cyan
307307 $allScripts | Where-Object {
308308 $fullPath = $_
@@ -509,7 +509,7 @@ function Clean-BinScripts {
509509 return
510510 }
511511
512- $binScripts = Get-ChildItem - Path $BinDir - Filter ' *.ps1'
512+ [ object []] $binScripts = Get-ChildItem - Path $BinDir - Filter ' *.ps1'
513513 if ($binScripts.Count -eq 0 ) {
514514 Write-Host " bin目录为空。" - ForegroundColor Yellow
515515 return
@@ -530,5 +530,3 @@ switch ($Action) {
530530 Clean - BinScripts
531531 }
532532}
533-
534-
You can’t perform that action at this time.
0 commit comments