修复:curl | bash 时交互式提示无法工作的问题
添加 < /dev/tty 重定向 stdin 到终端,使 openclaw onboard 的交互式提示在通过 curl | bash 运行时也能正常工作。 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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}"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user