Skip to content

Commit

Permalink
Merge pull request #269 from yukihiko-shinoda/hotfix-extra
Browse files Browse the repository at this point in the history
Fix bug that can't init non default host DB
  • Loading branch information
schlessera authored Jul 4, 2020
2 parents bd22747 + ced5655 commit 4ce62ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/install-wp-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ install_db() {
fi

# create database
if [ $(mysql --user="$DB_USER" --password="$DB_PASS" --execute='show databases;' | grep ^$DB_NAME$) ]
if [ $(mysql --user="$DB_USER" --password="$DB_PASS"$EXTRA --execute='show databases;' | grep ^$DB_NAME$) ]
then
echo "Reinstalling will delete the existing test database ($DB_NAME)"
read -p 'Are you sure you want to proceed? [y/N]: ' DELETE_EXISTING_DB
Expand Down

0 comments on commit 4ce62ca

Please sign in to comment.