Skip to content

Commit d4439a0

Browse files
committed
docs: add -s -- flags to curl|bash install command to prevent stdin consumption
Fixes #73814 The install.sh script uses interactive prompts (via gum) that consume stdin. When the script is piped via 'curl | bash', stdin is occupied by the script stream, causing the prompts to consume portions of the script itself, resulting in truncated function names and indefinite hangs. Adding '-s --' flags prevents the bash subshell from allowing stdin to reach the script's interactive prompts. This is a standard pattern for piped installation scripts.
1 parent 3120401 commit d4439a0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

docs/start/getting-started.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Need to install Node? See [Node setup](/install/node).
2929
<Tabs>
3030
<Tab title="macOS / Linux">
3131
```bash
32-
curl -fsSL https://openclaw.ai/install.sh | bash
32+
curl -fsSL https://openclaw.ai/install.sh | bash -s --
3333
```
3434
<img
3535
src="/assets/install-script.svg"
@@ -45,6 +45,7 @@ Need to install Node? See [Node setup](/install/node).
4545
</Tabs>
4646

4747
<Note>
48+
The `-s --` flags prevent the installer from consuming stdin when piped via `curl | bash`.
4849
Other install methods (Docker, Nix, npm): [Install](/install).
4950
</Note>
5051

0 commit comments

Comments
 (0)