修复:curl | bash 时交互式提示无法工作的问题

添加 < /dev/tty 重定向 stdin 到终端,使 openclaw onboard
的交互式提示在通过 curl | bash 运行时也能正常工作。

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Rick Mu
2026-02-13 14:07:29 +11:00
parent 7784983d1a
commit 45f3c0f66b
2 changed files with 2 additions and 2 deletions

View File

@@ -177,7 +177,7 @@ Write-Host " 选择 MiniMax 可获得 7天免费试用 - 无需信用卡。" -F
Write-Host " 注册地址https://platform.minimax.io" -ForegroundColor Cyan
Write-Host ""
wsl -d Ubuntu-24.04 -- bash -c 'export PATH="$HOME/.openclaw/bin:$PATH" && openclaw onboard --accept-risk --flow quickstart --node-manager npm --skip-skills'
wsl -d Ubuntu-24.04 -- bash -c 'export PATH="$HOME/.openclaw/bin:$PATH" && openclaw onboard --accept-risk --flow quickstart --node-manager npm --skip-skills < /dev/tty'
Write-Host ""
Write-Host "========================================" -ForegroundColor Green