From 911d0d37e5d9528486f3d0e0539e15a55e2494ee Mon Sep 17 00:00:00 2001 From: th33xitus Date: Mon, 26 Oct 2020 17:59:52 +0100 Subject: [PATCH] fix: invert default selections during klipper install --- scripts/install_klipper.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/install_klipper.sh b/scripts/install_klipper.sh index ef476ef..38d06d0 100755 --- a/scripts/install_klipper.sh +++ b/scripts/install_klipper.sh @@ -15,13 +15,13 @@ get_user_selections_klipper(){ #ask user for building firmware while true; do echo - read -p "${cyan}###### Do you want to build the Firmware? (Y/n):${default} " yn + read -p "${cyan}###### Do you want to build the Firmware? (y/N):${default} " yn case "$yn" in - Y|y|Yes|yes|"") + Y|y|Yes|yes) echo -e "###### > Yes" BUILD_FIRMWARE="true" break;; - N|n|No|no) + N|n|No|no|"") echo -e "###### > No" BUILD_FIRMWARE="false" break;; @@ -33,14 +33,14 @@ get_user_selections_klipper(){ #ask user for flashing mcu while true; do echo - read -p "${cyan}###### Do you want to flash your MCU? (Y/n):${default} " yn + read -p "${cyan}###### Do you want to flash your MCU? (y/N):${default} " yn case "$yn" in - Y|y|Yes|yes|"") + Y|y|Yes|yes) echo -e "###### > Yes" FLASH_FIRMWARE="true" flash_routine break;; - N|n|No|no) + N|n|No|no|"") echo -e "###### > No" FLASH_FIRMWARE="false" break;;