Skip to content

Commit 7181289

Browse files
authored
Don't overwrite an existing wp-tests-config.php (#1003)
1 parent 455eea8 commit 7181289

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/install-wp-tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ install_test_suite() {
111111
svn co --quiet --ignore-externals https://develop.svn.wordpress.org/${WP_TESTS_TAG}/tests/phpunit/data/ $WP_TESTS_DIR/data
112112
fi
113113

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

0 commit comments

Comments
 (0)