Skip to content

Commit 98f54b6

Browse files
committed
Don't overwrite an existing wp-tests-config.php
1 parent c384a15 commit 98f54b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/install-wp-tests.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ install_test_suite() {
112112
svn export --quiet --ignore-externals https://develop.svn.wordpress.org/${WP_TESTS_TAG}/tests/phpunit/data/ $WP_TESTS_DIR/data
113113
fi
114114

115-
if [ ! -f wp-tests-config.php ]; then
115+
if [ ! -f "$WP_TESTS_DIR"/wp-tests-config.php ]; then
116116
download https://develop.svn.wordpress.org/${WP_TESTS_TAG}/wp-tests-config-sample.php "$WP_TESTS_DIR"/wp-tests-config.php
117117
# remove all forward slashes in the end
118118
WP_CORE_DIR=$(echo $WP_CORE_DIR | sed "s:/\+$::")

0 commit comments

Comments
 (0)