lando / hyperdrive

Accelerate from zero to a Lando-based dev environment in less then 12 par-steps
https://lando.dev/hyperdrive
GNU General Public License v3.0
47 stars 13 forks source link

Improper default option handling on first prompt #22

Closed marklabrecque closed 3 years ago

marklabrecque commented 3 years ago

Describe the bug When the initial system analysis is done, there is a prompt to confirm continuing with installation followed by a [Y/n]. The capital Y would suggest the default option (ie if you confirm without any character input), but this script fails when you enter no input.

To Reproduce Steps to reproduce the behavior:

  1. Run hyperdrive...
  2. When the prompt "Do you wish for this script to take the recommended actions marked above? [Y/n]", hit Enter, assuming default option of 'Y'
  3. Script fails to continue with the message "Invalid response..."

Expected behavior The prompt should accept a default option as "Y"

Operating System and version: Ubuntu 20.04 via WSL2

Additional context Add any other context about the problem here.