From b850aa4d960bb10adae5be6747cbd6beb60f6427 Mon Sep 17 00:00:00 2001 From: th33xitus <> Date: Fri, 31 Jul 2020 10:30:14 +0200 Subject: [PATCH] Fix Bug --- scripts/install_mainsail.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install_mainsail.sh b/scripts/install_mainsail.sh index 29a6aad..1493f1a 100644 --- a/scripts/install_mainsail.sh +++ b/scripts/install_mainsail.sh @@ -44,7 +44,7 @@ install_moonraker(){ ln -s /tmp/moonraker.log ${HOME}/moonraker.log && ok_msg "Symlink created!" fi else - ERROR_MSG=" You are not using the Moonraker fork\n Please switch to the Moonraker fork first! Aborting ..." + ERROR_MSG="You are not using the Moonraker fork!\n Please switch to the Moonraker fork first! Aborting ..." ERROR=1 fi } @@ -92,7 +92,7 @@ VSDCARD check_api_section(){ status_msg "Checking for moonraker configuration ..." # check if api server is present in printer.cfg - if [ $(grep '^\[moonraker\]$' $PRINTER_CFG) ]; then + if [[ $(grep '^\[moonraker\]$' $PRINTER_CFG) ]]; then ok_msg "Moonraker already configured" else status_msg "No Moonraker entry found."