Skip to content

Commit 4ce62ca

Browse files
authored
Merge pull request #269 from yukihiko-shinoda/hotfix-extra
Fix bug that can't init non default host DB
2 parents bd22747 + ced5655 commit 4ce62ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/install-wp-tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ install_db() {
165165
fi
166166

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

0 commit comments

Comments
 (0)