fix: use Start-Sleep instead of Read-Host in pipe mode to avoid stdin issues
This commit is contained in:
+3
-3
@@ -1061,12 +1061,12 @@ Print-Status
|
|||||||
if ($isIexExecution) {
|
if ($isIexExecution) {
|
||||||
if ($Upgrade) {
|
if ($Upgrade) {
|
||||||
Invoke-Upgrade
|
Invoke-Upgrade
|
||||||
Read-Host "按 Enter 退出..."
|
Start-Sleep 3
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
if ($Force -or $Source -or $SkipHub -or $InstallDir) {
|
if ($Force -or $Source -or $SkipHub -or $InstallDir) {
|
||||||
Invoke-Install
|
Invoke-Install
|
||||||
Read-Host "按 Enter 退出..."
|
Start-Sleep 3
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
if (-not $script:STATUS_CLI_INSTALLED) {
|
if (-not $script:STATUS_CLI_INSTALLED) {
|
||||||
@@ -1075,7 +1075,7 @@ if ($isIexExecution) {
|
|||||||
Write-Warn "请使用 -Source / -Force 等参数指定操作,或直接运行 install.ps1 进入交互模式"
|
Write-Warn "请使用 -Source / -Force 等参数指定操作,或直接运行 install.ps1 进入交互模式"
|
||||||
}
|
}
|
||||||
Write-Host ""
|
Write-Host ""
|
||||||
Read-Host "按 Enter 退出..."
|
Start-Sleep 3
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user