mirror of
https://github.com/PegaProx/project-pegaprox.git
synced 2026-04-25 10:05:56 +03:00
[PR #55] [MERGED] fix(deploy): skip interactive port prompt when stdin is not a terminal #92
Labels
No labels
Approved
Q2-3 2026 Development
bug
documentation
enhancement
help wanted
invalid
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/project-pegaprox-PegaProx#92
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/PegaProx/project-pegaprox/pull/55
Author: @ry-ops
Created: 2/21/2026
Status: ✅ Merged
Merged: 2/21/2026
Merged by: @mkellermann97
Base:
main← Head:fix/install-script-stdin-pipe📝 Commits (1)
7dcb6a5fix(deploy): skip interactive port prompt when stdin is not a terminal📊 Changes
1 file changed (+2 additions, -1 deletions)
View changed files
📝
deploy.sh(+2 -1)📄 Description
Summary
Fixes #54
When running the one-liner install via
curl -sSL ... | sudo bash, stdin is a pipe rather than a terminal. Thereadcall at Step 6/6 waits for input that never arrives, and withset -ein effect the script exits silently — leaving the install incomplete.&& [ -t 0 ]to theINTERACTIVEcheck so the port-selection prompt is only shown when a real TTY is attachedACCESS_PORT(5000)This is exactly the fix confirmed by the original reporter in the issue.
Test plan
curl -sSL <install-url> | sudo bash— install should complete through Step 6/6 without hangingsudo ./deploy.shdirectly in a terminal — interactive port prompt should still appearsudo ./deploy.sh --no-interactive— should skip prompt as before🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.