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

Questions indicating a default value do not have a default value, #17

Closed hexblot closed 3 years ago

hexblot commented 3 years ago

Describe the bug When running the script and after system analysis step, when asked to [..] take recommended actions marked above?, the prompt indicates that expected values are [Y/n]. This would indicate that simply pressing ENTER (as indicated by the capital Y for default) should suffice to continue.

However, a response is required - either y/Y or verbose yes/capitalization mix thereof.

Do you wish for this script to take the recommended actions marked above? [Y/n] Invalid response... FAILED WITH CODE 5!

To Reproduce Steps to reproduce the behavior:

  1. Run hyperdrive
  2. Wait for recommended action confirmation prompt
  3. Either hit ENTER
  4. See error

Error "Invalid response... FAILED WITH CODE 5!"

Expected behavior Same behavior with entering the verbose y/yes at the prompt

Operating System and version: Debian 10 under WSL2

hexblot@Onyxia:~/Projects/sandbox$ uname -a Linux Onyxia 5.4.72-microsoft-standard-WSL2 #1 SMP Wed Oct 28 23:40:43 UTC 2020 x86_64 GNU/Linux hexblot@Onyxia:~/Projects/sandbox$ cat /etc/os-release PRETTY_NAME="Debian GNU/Linux 10 (buster)" NAME="Debian GNU/Linux" VERSION_ID="10" VERSION="10 (buster)" VERSION_CODENAME=buster ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/"

Additional context The above issue falsely led me to believe the script would be incompatible / have deeper issues with my environment, whereas the only issue is the prompt response management.

Recommended action would be to either improve response handling.

Edit: Falsely reported that y/n did not work, was purely an issue on my end