diff --git a/lgsm/modules/info_game.sh b/lgsm/modules/info_game.sh index 557718afb..097658b9c 100644 --- a/lgsm/modules/info_game.sh +++ b/lgsm/modules/info_game.sh @@ -68,7 +68,7 @@ fn_info_game_sqf() { if [ -n "${3}" ]; then servercfgfullpath="${3}" fi - eval "${1}"="$(sed -n "s/\(${2}\)\s*=.*/\1/p;q" "${servercfgfullpath}")" + eval "${1}"="$(sed -n "/^[^/]*${2} = \"\(.*\)\";/{s//\1/;p;q;}" "${servercfgfullpath}")" } # Config Type: XML