From a7b7b362f33d11e2d37e858f28a18002b5223560 Mon Sep 17 00:00:00 2001 From: th33xitus Date: Sat, 30 Jan 2021 15:43:59 +0100 Subject: [PATCH] fix: typo in moonraker instance count status --- scripts/status.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/status.sh b/scripts/status.sh index df5babf..1ab7ff1 100755 --- a/scripts/status.sh +++ b/scripts/status.sh @@ -105,10 +105,10 @@ moonraker_status(){ done ### count amount of moonraker services - if [ "$(systemctl list-units --full -all -t service --no-legend | grep -F "klipper.service")" ]; then + if [ "$(systemctl list-units --full -all -t service --no-legend | grep -F "moonraker.service")" ]; then instances=1 else - instances=$(systemctl list-units --full -all -t service --no-legend | grep -E "klipper-[[:digit:]].service" | wc -l) + instances=$(systemctl list-units --full -all -t service --no-legend | grep -E "moonraker-[[:digit:]].service" | wc -l) fi ### display status