From 12df6a884f90f06b22d280b6eaebae20ba64606e Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Wed, 13 Jun 2018 19:21:49 +0100 Subject: [PATCH] corrected unreal loop --- lgsm/functions/query_gamedig.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lgsm/functions/query_gamedig.sh b/lgsm/functions/query_gamedig.sh index a48934f97..443911e7a 100644 --- a/lgsm/functions/query_gamedig.sh +++ b/lgsm/functions/query_gamedig.sh @@ -54,10 +54,10 @@ if [ "$(command -v gamedig 2>/dev/null)" ]&&[ "$(command -v jq 2>/dev/null)" ]; fi done - local shortname_query_array=( unreal ) - for shortname_query in "${shortname_query_array[@]}" + local engine_query_array=( unreal ) + for engine_query in "${engine_query_array[@]}" do - if [ "${shortname_query}" == "${shortname}" ]; then + if [ "${engine_query}" == "${engine}" ]; then gamedigengine="ut" fi done