Skip to content

Commit ced5655

Browse files
Fix bug that can't init non default host DB
1 parent fc9e3e1 commit ced5655

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)