Skip to content

Commit

Permalink
Symlink WC instead of moving the WC folder
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgemd24 committed Sep 25, 2024
1 parent 24044c5 commit 7cb7531
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/install-wp-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 7cb7531

Please sign in to comment.