Skip to content

Commit e52f050

Browse files
authored
Merge pull request #255 from stevegrunwell/fix/install-tests-with-empty-password
Use longer option names in `install_db()` to avoid stalling CIs
2 parents 9b7fd85 + b48185f commit e52f050

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 -u "$DB_USER" -p"$DB_PASS" -e 'show databases;' | grep ^$DB_NAME$) ]
168+
if [ $(mysql --user="$DB_USER" --password="$DB_PASS" --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)