mirror of
https://github.com/bigbeartechworld/big-bear-scripts.git
synced 2026-07-22 05:31:58 -04:00
Fix grep command to exclude non-ASCII characters in SERVICES variable assignment
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user