From 4228f04a9318bcc56da06bc641a920a04b4f404b Mon Sep 17 00:00:00 2001 From: Christopher Date: Wed, 28 Feb 2024 16:08:39 -0600 Subject: [PATCH] Fix grep command to exclude non-ASCII characters in SERVICES variable assignment --- casaos-healthcheck/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/casaos-healthcheck/run.sh b/casaos-healthcheck/run.sh index f5fcfee..4e65646 100644 --- a/casaos-healthcheck/run.sh +++ b/casaos-healthcheck/run.sh @@ -58,7 +58,7 @@ else fi # Get a list of all casaos services -SERVICES=$(systemctl list-units --type=service | grep "$SERVICE_PREFIX" | awk '{print $1}') +SERVICES=$(systemctl list-units --type=service | grep "$SERVICE_PREFIX" | awk '{print $1}' | grep -v '^\xe2\x97\x8f') # Check if any services were found if [[ -z "$SERVICES" ]]; then