Skip to content

Commit 5915545

Browse files
authored
feat: improve server configuration parsing (#4242)
This commit improves the way server configurations are parsed by using xmllint to extract values from XML files. The eval function is also used to assign the extracted value to a variable.
1 parent 105350f commit 5915545

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lgsm/modules/info_game.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ fn_info_game_xml() {
131131
else
132132
servercfgparse="${servercfgfullpath}"
133133
fi
134-
eval "${1}"="$(xmllint --xpath "string(${2})" "${servercfgparse}")"
134+
eval "${1}=\"$(xmllint --xpath "string(${2})" "${servercfgparse}")\""
135135
configtype="xml"
136136
}
137137

0 commit comments

Comments
 (0)