From 99f3516002a145ffa678dd3f7902453d1eca3963 Mon Sep 17 00:00:00 2001 From: emkael Date: Thu, 8 Oct 2020 22:51:58 +0200 Subject: Detecting tournament language on dump load --- dumps/load-dumps.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'dumps') diff --git a/dumps/load-dumps.sh b/dumps/load-dumps.sh index 7695a40..28370e6 100755 --- a/dumps/load-dumps.sh +++ b/dumps/load-dumps.sh @@ -3,11 +3,11 @@ pushd $(dirname $0) >> /dev/null cat .mapping | while read DB DUMP do grep -v 'CREATE DATABASE' $DUMP | grep -vi '^Use ' | mysql ${LIGA_MYSQL_CONNECTION_OPTS} $DB - if [ "$DB" != "dmp202021_e" ] + if [[ $(mysql ${LIGA_MYSQL_CONNECTION_OPTS} $DB -N -e "SELECT language FROM params;") == *"english.language"* ]] then -