From 7103ed542ef2ddd3028cf284acdf5d18011f8ee0 Mon Sep 17 00:00:00 2001 From: Marco Cawthorne Date: Sat, 18 Nov 2023 16:49:26 -0800 Subject: [PATCH] Change the valve gamedir check a bit for compatibility (?) --- disable-services.sh | 2 +- enable-services.sh | 2 +- restart-services.sh | 2 +- stop-services.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/disable-services.sh b/disable-services.sh index 71a8871..9e9683a 100755 --- a/disable-services.sh +++ b/disable-services.sh @@ -6,7 +6,7 @@ find ./ -type f -name "server.cfg" -print | while read LINE do GAMEDIR=$(dirname "$LINE" | cut -d '/' -f 2) - if [ "$GAMEDIR" != "valve" ] + if [ ! "$GAMEDIR" = "valve" ] then systemctl --user disable freehl@$GAMEDIR fi diff --git a/enable-services.sh b/enable-services.sh index 31b5e89..407881f 100755 --- a/enable-services.sh +++ b/enable-services.sh @@ -6,7 +6,7 @@ find ./ -type f -name "server.cfg" -print | while read LINE do GAMEDIR=$(dirname "$LINE" | cut -d '/' -f 2) - if [ "$GAMEDIR" != "valve" ] + if [ ! "$GAMEDIR" = "valve" ] then systemctl --user enable freehl@$GAMEDIR fi diff --git a/restart-services.sh b/restart-services.sh index 370c8c6..cebaebb 100755 --- a/restart-services.sh +++ b/restart-services.sh @@ -6,7 +6,7 @@ find ./ -type f -name "server.cfg" -print | while read LINE do GAMEDIR=$(dirname "$LINE" | cut -d '/' -f 2) - if [ "$GAMEDIR" != "valve" ] + if [ ! "$GAMEDIR" = "valve" ] then systemctl --user restart freehl@$GAMEDIR fi diff --git a/stop-services.sh b/stop-services.sh index e62b3d7..7db626b 100755 --- a/stop-services.sh +++ b/stop-services.sh @@ -6,7 +6,7 @@ find ./ -type f -name "server.cfg" -print | while read LINE do GAMEDIR=$(dirname "$LINE" | cut -d '/' -f 2) - if [ "$GAMEDIR" != "valve" ] + if [ ! "$GAMEDIR" = "valve" ] then systemctl --user stop freehl@$GAMEDIR fi