Skip to content

Fix piped shell installer stdin handling#27

Merged
Turtle-Hwan merged 1 commit into
mainfrom
feat/fix-piped-shell-installer
May 29, 2026
Merged

Fix piped shell installer stdin handling#27
Turtle-Hwan merged 1 commit into
mainfrom
feat/fix-piped-shell-installer

Conversation

@Turtle-Hwan
Copy link
Copy Markdown
Contributor

Summary

  • Prevent Claude CLI subprocesses in scripts/install.sh from consuming the rest of the installer when users run curl ... | bash.
  • Keep local-file execution unchanged while making piped shell install reliable.

Validation

  • bash -n scripts/install.sh
  • npm test
  • git diff --check
  • Reproduced the failure with raw curl | bash: marketplace add succeeded but install lines were skipped before this change.

@Turtle-Hwan Turtle-Hwan merged commit 5c7e7b2 into main May 29, 2026
@Turtle-Hwan Turtle-Hwan deleted the feat/fix-piped-shell-installer branch May 29, 2026 02:41
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a helper function run_claude in the installation script to execute the Claude binary with standard input redirected from /dev/null, preventing potential hangs. It also updates the corresponding test suite to assert this new behavior. There are no review comments, so no additional feedback is provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant