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