fix: 修复 setup.ps1 中 catch 块缺少闭合大括号
This commit is contained in:
@@ -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" }
|
||||||
|
|||||||
Reference in New Issue
Block a user