Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

Server commands (7D2D) indicates 'info_game.sh' errors during execution #91

Open
irobot73 opened this issue Jun 12, 2023 · 2 comments
Open

Comments

@irobot73
Copy link

Been a bit since I had to mess around but 7D2D A21 dropped this afternoon

Using 'container console' via Porttainer & attempting to utilize some (all?) of the server command indicates an error in the 'info_game.sh' script file

linuxgsm@4e085af0701e:~$ *server start 
/home/linuxgsm/lgsm/modules/info_game.sh: eval: line 134: unexpected EOF while looking for matching `''
/home/linuxgsm/lgsm/modules/info_game.sh: eval: line 135: syntax error: unexpected end of file
/home/linuxgsm/lgsm/modules/info_game.sh: eval: line 134: unexpected EOF while looking for matching `''
/home/linuxgsm/lgsm/modules/info_game.sh: eval: line 135: syntax error: unexpected end of file
[  OK  ] Starting sdtdserver: NOT SET
linuxgsm@4e085af0701e:~$ *server restart
/home/linuxgsm/lgsm/modules/info_game.sh: eval: line 134: unexpected EOF while looking for matching `''
/home/linuxgsm/lgsm/modules/info_game.sh: eval: line 135: syntax error: unexpected end of file
/home/linuxgsm/lgsm/modules/info_game.sh: eval: line 134: unexpected EOF while looking for matching `''
/home/linuxgsm/lgsm/modules/info_game.sh: eval: line 135: syntax error: unexpected end of file
[ .... ] Stopping sdtdserver: NOT SET/home/linuxgsm/lgsm/modules/info_game.sh: eval: line 134: unexpected EOF while looking for matching `''
/home/linuxgsm/lgsm/modules/info_game.sh: eval: line 135: syntax error: unexpected end of file
[  OK  ] Stopping sdtdserver: Graceful: telnet: 127.0.0.1:8084 : OK
[  OK  ] Stopping sdtdserver: NOT SET
/home/linuxgsm/lgsm/modules/info_game.sh: eval: line 134: unexpected EOF while looking for matching `''
/home/linuxgsm/lgsm/modules/info_game.sh: eval: line 135: syntax error: unexpected end of file
/home/linuxgsm/lgsm/modules/info_game.sh: eval: line 134: unexpected EOF while looking for matching `''
/home/linuxgsm/lgsm/modules/info_game.sh: eval: line 135: syntax error: unexpected end of file
[  OK  ] Starting sdtdserver: NOT SET
linuxgsm@4e085af0701e:~$ 

Confirmed the game_info is good by running the 'lgsm-update' command (1st couple of rows in the screenshot)
Screenshot from 2023-06-12 16-37-17

@Pshock13
Copy link

Looks like this might be related to this issue

@irobot73
Copy link
Author

irobot73 commented Jun 15, 2023

Looks like this might be related to this issue

Good catch. Does look like it.

Edit

I did hand-jam the fix noted later in that thread & generating the DETAILS appears to work as expected w/o the errors

Line 134 (escape the inner quotes):
eval "${1}=\"$(xmllint --xpath "string(${2})" "${servercfgparse}")\""

Least it's on their radar & doesn't really effect anything

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants