mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-15 11:34:27 +05:00
Fix Bug
This commit is contained in:
@@ -44,7 +44,7 @@ install_moonraker(){
|
|||||||
ln -s /tmp/moonraker.log ${HOME}/moonraker.log && ok_msg "Symlink created!"
|
ln -s /tmp/moonraker.log ${HOME}/moonraker.log && ok_msg "Symlink created!"
|
||||||
fi
|
fi
|
||||||
else
|
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
|
ERROR=1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@@ -92,7 +92,7 @@ VSDCARD
|
|||||||
check_api_section(){
|
check_api_section(){
|
||||||
status_msg "Checking for moonraker configuration ..."
|
status_msg "Checking for moonraker configuration ..."
|
||||||
# check if api server is present in printer.cfg
|
# 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"
|
ok_msg "Moonraker already configured"
|
||||||
else
|
else
|
||||||
status_msg "No Moonraker entry found."
|
status_msg "No Moonraker entry found."
|
||||||
|
|||||||
Reference in New Issue
Block a user