diff --git a/functions/game_settings.sh b/functions/game_settings.sh index 5cc9f4a54..9da3863dd 100644 --- a/functions/game_settings.sh +++ b/functions/game_settings.sh @@ -131,7 +131,7 @@ fn_flush_game_settings fn_import_game_settings $selfname # New method is to always run this function, it will overwrite defaults with whatever the new script values are -cfg_version_default=$(grep lgsm_version "${cfg_file_default}" 2>&1 | cut -d'=' -f2 | sed -e 's/"//g') +cfg_version_default=$(grep '^lgsm_version="' "${cfg_file_default}" 2>&1 | cut -d'"' -f2) if [ "${cfg_version_default}" != "${version}" ]; then fn_create_config default 1 fi