From 45f3c0f66b1d5ce307f683613e7f9162418f2fad Mon Sep 17 00:00:00 2001 From: Rick Mu Date: Fri, 13 Feb 2026 14:07:29 +1100 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9Acurl=20|=20bash=20?= =?UTF-8?q?=E6=97=B6=E4=BA=A4=E4=BA=92=E5=BC=8F=E6=8F=90=E7=A4=BA=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E5=B7=A5=E4=BD=9C=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加 < /dev/tty 重定向 stdin 到终端,使 openclaw onboard 的交互式提示在通过 curl | bash 运行时也能正常工作。 Co-Authored-By: Claude Sonnet 4.5 --- install-macos.sh | 2 +- install-windows.ps1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/install-macos.sh b/install-macos.sh index e3e5ad5..0c5bed7 100755 --- a/install-macos.sh +++ b/install-macos.sh @@ -101,7 +101,7 @@ echo -e " 选择 ${BOLD}MiniMax${NC} 可获得 ${BOLD}7天免费试用${NC} — echo -e " 注册地址:${BLUE}https://platform.minimax.io${NC}" echo "" -openclaw onboard --accept-risk --flow quickstart --node-manager npm --skip-skills +openclaw onboard --accept-risk --flow quickstart --node-manager npm --skip-skills < /dev/tty echo "" echo -e "${GREEN}${BOLD}========================================${NC}" diff --git a/install-windows.ps1 b/install-windows.ps1 index 47e67ef..e2bd609 100644 --- a/install-windows.ps1 +++ b/install-windows.ps1 @@ -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