From 7cb753161e8483ba337570e69aad2e7a489b44ba Mon Sep 17 00:00:00 2001 From: Jorge M Date: Wed, 25 Sep 2024 19:39:55 +0200 Subject: [PATCH 1/2] Symlink WC instead of moving the WC folder --- bin/install-wp-tests.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/install-wp-tests.sh b/bin/install-wp-tests.sh index 5883078613..859eda181b 100755 --- a/bin/install-wp-tests.sh +++ b/bin/install-wp-tests.sh @@ -196,14 +196,14 @@ install_wc() { if [ ! -f "$WC_VERSION_FILE" ]; then # set up testing suite rm -rf "$WC_DIR" - mkdir -p "$WC_DIR" echo "Installing WooCommerce ($WC_VERSION)." # Grab the necessary plugins. WC_TMPDIR="${TMPDIR}/woocommerce-${WC_VERSION}" rm -rf "${WC_TMPDIR}" git clone --quiet --depth=1 --branch="${WC_VERSION}" https://github.com/woocommerce/woocommerce.git "${WC_TMPDIR}" - mv "${WC_TMPDIR}"/plugins/woocommerce/* "$WC_DIR" - touch "$WC_VERSION_FILE" + + ln -s "${WC_TMPDIR}"/plugins/woocommerce "$WC_DIR" + touch "$WC_VERSION_FILE" # Install composer for WooCommerce cd "${WC_DIR}" From 2583950f750d5f03e270290bab919c04f9faf542 Mon Sep 17 00:00:00 2001 From: Jorge M Date: Thu, 26 Sep 2024 10:15:48 +0200 Subject: [PATCH 2/2] Fix mixed spacing --- bin/install-wp-tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/install-wp-tests.sh b/bin/install-wp-tests.sh index 859eda181b..7eb5d01f1a 100755 --- a/bin/install-wp-tests.sh +++ b/bin/install-wp-tests.sh @@ -203,7 +203,7 @@ install_wc() { git clone --quiet --depth=1 --branch="${WC_VERSION}" https://github.com/woocommerce/woocommerce.git "${WC_TMPDIR}" ln -s "${WC_TMPDIR}"/plugins/woocommerce "$WC_DIR" - touch "$WC_VERSION_FILE" + touch "$WC_VERSION_FILE" # Install composer for WooCommerce cd "${WC_DIR}"