fix: more verbose error message

This commit is contained in:
th33xitus
2021-01-29 20:12:53 +01:00
parent 17524bf49b
commit 47cf96ef74

View File

@@ -8,7 +8,7 @@ klipper_setup_dialog(){
### check for existing klipper service installations ### check for existing klipper service installations
if [ "$(systemctl list-units --full -all -t service --no-legend | grep -F "klipper.service")" ] || [ "$(systemctl list-units --full -all -t service --no-legend | grep -E "klipper-[[:digit:]].service")" ]; then if [ "$(systemctl list-units --full -all -t service --no-legend | grep -F "klipper.service")" ] || [ "$(systemctl list-units --full -all -t service --no-legend | grep -E "klipper-[[:digit:]].service")" ]; then
ERROR_MSG="At least one Klipper service is already installed!" && return 0 ERROR_MSG="At least one Klipper service is already installed!\n Please remove Klipper first, before installing it again." && return 0
fi fi
### initial printer.cfg path check ### initial printer.cfg path check