Change the valve gamedir check a bit for compatibility (?)

This commit is contained in:
Marco Cawthorne 2023-11-18 16:49:26 -08:00
parent a94cc00378
commit 7103ed542e
Signed by: eukara
GPG key ID: CE2032F0A2882A22
4 changed files with 4 additions and 4 deletions

View file

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

View file

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

View file

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

View file

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