fix: invert default selections during klipper install

This commit is contained in:
th33xitus
2020-10-26 17:59:52 +01:00
parent cbffa1b31a
commit 911d0d37e5

View File

@@ -15,13 +15,13 @@ get_user_selections_klipper(){
#ask user for building firmware #ask user for building firmware
while true; do while true; do
echo 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 case "$yn" in
Y|y|Yes|yes|"") Y|y|Yes|yes)
echo -e "###### > Yes" echo -e "###### > Yes"
BUILD_FIRMWARE="true" BUILD_FIRMWARE="true"
break;; break;;
N|n|No|no) N|n|No|no|"")
echo -e "###### > No" echo -e "###### > No"
BUILD_FIRMWARE="false" BUILD_FIRMWARE="false"
break;; break;;
@@ -33,14 +33,14 @@ get_user_selections_klipper(){
#ask user for flashing mcu #ask user for flashing mcu
while true; do while true; do
echo 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 case "$yn" in
Y|y|Yes|yes|"") Y|y|Yes|yes)
echo -e "###### > Yes" echo -e "###### > Yes"
FLASH_FIRMWARE="true" FLASH_FIRMWARE="true"
flash_routine flash_routine
break;; break;;
N|n|No|no) N|n|No|no|"")
echo -e "###### > No" echo -e "###### > No"
FLASH_FIRMWARE="false" FLASH_FIRMWARE="false"
break;; break;;