fix: make some output silent

This commit is contained in:
th33xitus
2020-09-01 14:22:28 +02:00
parent 49a28cff22
commit d964523558

View File

@@ -217,13 +217,13 @@ moonraker_setup(){
#and before patching in the new location
backup_printer_cfg
#patching new printer.cfg location to /etc/default/klipper
if ! grep "/klipper_config/printer.cfg" $KLIPPER_SERVICE2; then
if ! grep -q "/klipper_config/printer.cfg" $KLIPPER_SERVICE2; then
status_msg "Patching new printer.cfg location to /etc/default/klipper ..."
sudo sed -i "/KLIPPY_ARGS=/ s|$PRINTER_CFG|/home/${USER}/klipper_config/printer.cfg|" /etc/default/klipper
ok_msg "New location is: '/home/${USER}/klipper_config/printer.cfg'"
fi
#patching new UDS argument to /etc/default/klipper
if ! grep -- "-a /tmp/klippy_uds" $KLIPPER_SERVICE2; then
if ! grep -q -- "-a /tmp/klippy_uds" $KLIPPER_SERVICE2; then
status_msg "Patching unix domain socket to /etc/default/klipper ..."
#append the new argument to /tmp/klippy.log argument
sudo sed -i "/KLIPPY_ARGS/s/\.log/\.log -a \/tmp\/klippy_uds/" $KLIPPER_SERVICE2