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 do
GAMEDIR=$(dirname "$LINE" | cut -d '/' -f 2) GAMEDIR=$(dirname "$LINE" | cut -d '/' -f 2)
if [ "$GAMEDIR" != "valve" ] if [ ! "$GAMEDIR" = "valve" ]
then then
systemctl --user disable freehl@$GAMEDIR systemctl --user disable freehl@$GAMEDIR
fi fi

View file

@ -6,7 +6,7 @@ find ./ -type f -name "server.cfg" -print | while read LINE
do do
GAMEDIR=$(dirname "$LINE" | cut -d '/' -f 2) GAMEDIR=$(dirname "$LINE" | cut -d '/' -f 2)
if [ "$GAMEDIR" != "valve" ] if [ ! "$GAMEDIR" = "valve" ]
then then
systemctl --user enable freehl@$GAMEDIR systemctl --user enable freehl@$GAMEDIR
fi fi

View file

@ -6,7 +6,7 @@ find ./ -type f -name "server.cfg" -print | while read LINE
do do
GAMEDIR=$(dirname "$LINE" | cut -d '/' -f 2) GAMEDIR=$(dirname "$LINE" | cut -d '/' -f 2)
if [ "$GAMEDIR" != "valve" ] if [ ! "$GAMEDIR" = "valve" ]
then then
systemctl --user restart freehl@$GAMEDIR systemctl --user restart freehl@$GAMEDIR
fi fi

View file

@ -6,7 +6,7 @@ find ./ -type f -name "server.cfg" -print | while read LINE
do do
GAMEDIR=$(dirname "$LINE" | cut -d '/' -f 2) GAMEDIR=$(dirname "$LINE" | cut -d '/' -f 2)
if [ "$GAMEDIR" != "valve" ] if [ ! "$GAMEDIR" = "valve" ]
then then
systemctl --user stop freehl@$GAMEDIR systemctl --user stop freehl@$GAMEDIR
fi fi