summaryrefslogtreecommitdiff
path: root/dumps/load-dumps.sh
diff options
context:
space:
mode:
Diffstat (limited to 'dumps/load-dumps.sh')
-rwxr-xr-xdumps/load-dumps.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/dumps/load-dumps.sh b/dumps/load-dumps.sh
index 28370e6..a94f500 100755
--- a/dumps/load-dumps.sh
+++ b/dumps/load-dumps.sh
@@ -1,6 +1,6 @@
#!/bin/bash
pushd $(dirname $0) >> /dev/null
-cat .mapping | while read DB DUMP
+grep -v '^#' .mapping | while read DB DUMP
do
grep -v 'CREATE DATABASE' $DUMP | grep -vi '^Use ' | mysql ${LIGA_MYSQL_CONNECTION_OPTS} $DB
if [[ $(mysql ${LIGA_MYSQL_CONNECTION_OPTS} $DB -N -e "SELECT language FROM params;") == *"english.language"* ]]