diff --git a/bin/install-wp-tests.sh b/bin/install-wp-tests.sh index 5883078613..7eb5d01f1a 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}"