summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Hesketh <josh@nitrotech.org>2016-03-22 21:36:36 +1100
committerJoshua Hesketh <josh@nitrotech.org>2016-03-22 21:37:31 +1100
commit676fa221cde9e453acef91dd8bb928013dc19ee9 (patch)
tree13bcc566e6072cea69860c7b4cd3d34043ea63bc
parentef99aff4c3de2143d10b904538dd4618b68944ef (diff)
downloadturbo-hipster-676fa221cde9e453acef91dd8bb928013dc19ee9.tar.gz
Fix quotes on bash command
Change-Id: I784f28be5477870561a45e79e300198dd9364879
-rwxr-xr-xturbo_hipster/task_plugins/real_db_upgrade/nova_mysql_migrations.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/turbo_hipster/task_plugins/real_db_upgrade/nova_mysql_migrations.sh b/turbo_hipster/task_plugins/real_db_upgrade/nova_mysql_migrations.sh
index bf27da0..dbf9ccd 100755
--- a/turbo_hipster/task_plugins/real_db_upgrade/nova_mysql_migrations.sh
+++ b/turbo_hipster/task_plugins/real_db_upgrade/nova_mysql_migrations.sh
@@ -246,7 +246,7 @@ set +x
# Restore database to known good state
echo "Loading test database $DB_NAME"
set -x
-if ! mysql -u $DB_USER --password=$DB_PASS -e 'use $DB_NAME'
+if ! mysql -u $DB_USER --password=$DB_PASS -e "use $DB_NAME"
then
mysql -u $DB_USER --password=$DB_PASS -e "create database $DB_NAME"
mysql -u $DB_USER --password=$DB_PASS $DB_NAME < $DATASET_SEED_SQL