Skip to content

Rewrite install.sh to use argument instead of interactive prompt#7

Merged
chigichan24 merged 1 commit into
mainfrom
fix-install-script-v2
Mar 21, 2026
Merged

Rewrite install.sh to use argument instead of interactive prompt#7
chigichan24 merged 1 commit into
mainfrom
fix-install-script-v2

Conversation

@chigichan24
Copy link
Copy Markdown
Owner

Summary

Rewrite install.sh to accept install directory as an argument instead of interactive read.

curl | bash pipes the script content to stdin, making read impossible. The nest project uses the same non-interactive approach.

Usage

# Default (~/.local/bin)
curl -fsSL .../install.sh | bash

# Custom path
curl -fsSL .../install.sh | bash -s -- /custom/path

Test plan

  • curl -fsSL .../install.sh | bash installs to ~/.local/bin
  • bash Scripts/install.sh /tmp/test installs to /tmp/test

🤖 Generated with Claude Code

curl | bash and interactive read don't work together. Now accepts
install directory as an argument (default: ~/.local/bin).

  curl ... | bash                          # installs to ~/.local/bin
  curl ... | bash -s -- /custom/path       # installs to custom path

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@chigichan24 chigichan24 merged commit 30a3156 into main Mar 21, 2026
1 check passed
@chigichan24 chigichan24 deleted the fix-install-script-v2 branch March 21, 2026 16:15
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