Fix grep command to exclude non-ASCII characters in SERVICES variable assignment

This commit is contained in:
Christopher
2024-02-28 16:08:39 -06:00
parent 7e3d17067c
commit 4228f04a93

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}')
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