From 0b15cd0d9ba7e52a55811cf5603f15b709177cc9 Mon Sep 17 00:00:00 2001 From: th33xitus Date: Thu, 4 Feb 2021 11:39:06 +0100 Subject: [PATCH] fix: delete doubled status_msg in gcode_shell_command extension setup --- scripts/functions.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/scripts/functions.sh b/scripts/functions.sh index 5baa1e4..a6148c4 100755 --- a/scripts/functions.sh +++ b/scripts/functions.sh @@ -333,10 +333,8 @@ setup_gcode_shell_command(){ Y|y|Yes|yes|"") if [ -d $KLIPPER_DIR/klippy/extras ]; then status_msg "Installing gcode shell command extension ..." - status_msg "Copy gcode_shell_command.py to '$KLIPPER_DIR/klippy/extras' ..." if [ -f $KLIPPER_DIR/klippy/extras/gcode_shell_command.py ]; then - warn_msg "There is already a file named 'gcode_shell_command.py'" - warn_msg "in the destination location!" + warn_msg "There is already a file named 'gcode_shell_command.py'\nin the destination location!" while true; do read -p "${cyan}###### Do you want to overwrite it? (Y/n):${default} " yn case "$yn" in @@ -366,10 +364,10 @@ setup_gcode_shell_command(){ install_gcode_shell_command(){ klipper_service "stop" - status_msg "Copy 'gcode_shell_command.py' to $KLIPPER_DIR/klippy/extras" + status_msg "Copy 'gcode_shell_command.py' to '$KLIPPER_DIR/klippy/extras' ..." cp ${SRCDIR}/kiauh/resources/gcode_shell_command.py $KLIPPER_DIR/klippy/extras - echo while true; do + echo read -p "${cyan}###### Do you want to create the example shell command? (Y/n):${default} " yn case "$yn" in Y|y|Yes|yes|"")