From 33f7173604ce98bef4203188b0a2526b7b1b2f4b Mon Sep 17 00:00:00 2001 From: Christopher Date: Wed, 28 Feb 2024 16:31:30 -0600 Subject: [PATCH] Fix grep command to exclude non-printable characters in casaos-healthcheck/run.sh --- 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 4e65646..c28504b 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}' | grep -v '^\xe2\x97\x8f') +SERVICES=$(systemctl list-units --type=service | grep "$SERVICE_PREFIX" | awk '{print $1}' | grep -v '[^ -~]') # Check if any services were found if [[ -z "$SERVICES" ]]; then