Files
SuperCharged-Claude-Code-Up…/install-claude-code.sh
uroma 1e2054dcd2 Fix: Make sudo/install prompts more prominent with defaults
Root Cause: The sudo and install prompts were not visually prominent,
causing users to miss them or not respond clearly. Additionally, the
prompts had [Y/n] format but didn't default to Yes on Enter.

Changes:
1. Main install prompt (line 674-676):
   - Added prominent MAGENTA boxed prompt
   - "Install Z.AI coding-helper now? [Y/n]"
   - Defaults to Yes when user presses Enter
   - Visual box makes it stand out from other output

2. Sudo retry prompt (line 747-748):
   - Added prominent YELLOW boxed prompt
   - "Try installing with sudo now? [Y/n] (recommended)"
   - Defaults to Yes when user presses Enter
   - Clear "(recommended)" label

3. Default handling:
   - Changed from `[y/N]` to `[Y/n]` (Yes is default)
   - Added check for empty input (Enter key) to treat as Yes
   - `if [[ -z "$var" ]] || [[ $var =~ ^[Yy]$ ]]`

Example output:
═══════════════════════════════════════════════════════════
  Install Z.AI coding-helper now? [Y/n]
═══════════════════════════════════════════════════════════

This makes it much harder to miss the prompts and provides a better
user experience by accepting Enter as "Yes" (the common case).

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-22 16:41:15 +00:00

37 KiB
Executable File