Fix grep command to exclude non-printable characters in casaos-healthcheck/run.sh

This commit is contained in:
Christopher
2024-02-28 16:31:30 -06:00
parent 4228f04a93
commit 33f7173604

View File

@@ -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