Private
Public Access
1
0

fix: 修复 setup.ps1 中 catch 块缺少闭合大括号

This commit is contained in:
2026-02-28 15:59:26 +08:00
parent fd79e8906b
commit fb5be7563a

View File

@@ -24,7 +24,7 @@ try {
$OutputEncoding = [System.Text.Encoding]::UTF8 $OutputEncoding = [System.Text.Encoding]::UTF8
} catch { } catch {
# 静默处理 - ISE 等环境可能不支持 Console 类操作 # 静默处理 - ISE 等环境可能不支持 Console 类操作
}
# ========== 颜色输出函数 ========== # ========== 颜色输出函数 ==========
function Write-Info { param([string]$Message); Write-Host "[INFO]" -ForegroundColor Blue -NoNewline; Write-Host " $Message" } function Write-Info { param([string]$Message); Write-Host "[INFO]" -ForegroundColor Blue -NoNewline; Write-Host " $Message" }
function Write-Success { param([string]$Message); Write-Host "[SUCCESS]" -ForegroundColor Green -NoNewline; Write-Host " $Message" } function Write-Success { param([string]$Message); Write-Host "[SUCCESS]" -ForegroundColor Green -NoNewline; Write-Host " $Message" }