We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9b7fd85 + b48185f commit e52f050Copy full SHA for e52f050
templates/install-wp-tests.sh
@@ -165,7 +165,7 @@ install_db() {
165
fi
166
167
# create database
168
- if [ $(mysql -u "$DB_USER" -p"$DB_PASS" -e 'show databases;' | grep ^$DB_NAME$) ]
+ if [ $(mysql --user="$DB_USER" --password="$DB_PASS" --execute='show databases;' | grep ^$DB_NAME$) ]
169
then
170
echo "Reinstalling will delete the existing test database ($DB_NAME)"
171
read -p 'Are you sure you want to proceed? [y/N]: ' DELETE_EXISTING_DB
0 commit comments