mirror of
https://github.com/PegaProx/project-pegaprox.git
synced 2026-04-25 10:05:56 +03:00
[PR #64] [MERGED] fix(deploy): warn on privileged custom port and strip leading zeros #103
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#103
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/64
Author: @ry-ops
Created: 2/21/2026
Status: ✅ Merged
Merged: 2/21/2026
Merged by: @mkellermann97
Base:
main← Head:fix/deploy-privileged-port-warning📝 Commits (1)
73d6f97fix(deploy): warn on privileged custom port and strip leading zeros📊 Changes
1 file changed (+9 additions, -1 deletions)
View changed files
📝
deploy.sh(+9 -1)📄 Description
Summary
Two issues with the custom port input (option 3) in the interactive port-selection step of
deploy.sh:Leading zeros — bash integer comparisons interpret values like
"007"as octal in some shells. Strip leading zeros with parameter expansion before the range check.No inline warning for privileged ports — entering a port below 1024 silently succeeded; the only hint was a brief note printed after the loop. Now, when a privileged port is chosen via the custom option, an explicit three-line warning is printed immediately so the user can reconsider before installation continues.
Test plan
007as a custom port — should be treated as port 7, not octal 780as a custom port — warning about privileged ports should appear before proceeding8080— no warning, install proceeds normally99999— "Invalid port" error appears🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.