Skip to content

fix: validate numeric menu answers - #712

Merged
lukepolo merged 1 commit into
mainfrom
fix/validate-numeric-menu-answers
Nov 1, 2026
Merged

lukepolo merged 1 commit into
mainfrom
fix/validate-numeric-menu-answers

Conversation

@lukepolo

@lukepolo lukepolo commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

custom.sh's node prompt now accepts only a whole number from the list it shows.

  • New utils/choose_node.sh helper: digits only, read as decimal, bounds-checked, and asks again otherwise
  • Gives up cleanly when no answer comes, or there are no nodes to pick from
  • tests/scripts/choose_node_test.sh, wired into the Panel scripts workflow (custom.sh added to its paths, the helper to shellcheck)
  • I checked the other prompts in the scripts update.sh, fix-*.sh, plugin.sh, setup-gpu-nodes.sh, playcast-relay.sh and backblaze-proxy.sh reach: they already check their answers or only compare them to fixed values

custom.sh's node prompt now takes only a whole number from the list and asks
again otherwise, through a small choose_node helper with a test.
@lukepolo
lukepolo merged commit 09d9962 into main Nov 1, 2026
1 check passed
@lukepolo
lukepolo deleted the fix/validate-numeric-menu-answers branch November 1, 2026 17:10
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