Skip to content

Commit

Permalink
Merge pull request #378 from Automattic/update-mu-plugins
Browse files Browse the repository at this point in the history
fix(vip-go-mu-plugins): use `.devenvignore` to reduce size
  • Loading branch information
sjinks authored Nov 4, 2024
2 parents a38618d + a6858de commit ac96424
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion features/src/vip-go-mu-plugins/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "vip-go-mu-plugins",
"name": "VIP Go MU Plugins",
"version": "2.2.0",
"version": "2.2.1",
"description": "Installs VIP Go MU Plugins into the Dev Environment",
"documentationURL": "https://github.com/Automattic/vip-codespaces/tree/trunk/features/src/vip-go-mu-plugins",
"options": {
Expand Down
4 changes: 2 additions & 2 deletions features/src/vip-go-mu-plugins/update-mu-plugins
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ git clone --depth=1 --recurse-submodules --shallow-submodules https://github.com
git clone --depth=1 https://github.com/Automattic/vip-go-mu-plugins-ext.git "${TEMP_DIR}/mu-plugins-ext" --single-branch

if [ "${DEVELOPMENT_MODE}" != 'true' ]; then
rsync -a --delete "${TEMP_DIR}/mu-plugins/" "${TEMP_DIR}/mu-plugins-ext/" /wp/wp-content/mu-plugins --exclude-from="${TEMP_DIR}/mu-plugins/.dockerignore" --exclude-from="${TEMP_DIR}/mu-plugins-ext/.dockerignore" --exclude-from=/etc/vip-go-mu-plugins/.rsyncignore
rsync -a --delete "${TEMP_DIR}/mu-plugins/" "${TEMP_DIR}/mu-plugins-ext/" /wp/wp-content/mu-plugins --exclude-from="${TEMP_DIR}/mu-plugins/.dockerignore" --exclude-from="${TEMP_DIR}/mu-plugins-ext/.dockerignore" --exclude-from="${TEMP_DIR}/mu-plugins-ext/.devenvignore" --exclude-from=/etc/vip-go-mu-plugins/.rsyncignore
find /wp/wp-content/mu-plugins \( -name .svn -o -name .github -o -name ".git*" \) -type d -exec rm -rfv {} \; 2> /dev/null
else
rsync -a --delete "${TEMP_DIR}/mu-plugins/" "${TEMP_DIR}/mu-plugins-ext/" /wp/wp-content/mu-plugins --exclude-from=/etc/vip-go-mu-plugins/.rsyncignore
rsync -a --delete "${TEMP_DIR}/mu-plugins/" "${TEMP_DIR}/mu-plugins-ext/" /wp/wp-content/mu-plugins --exclude-from=/etc/vip-go-mu-plugins/.rsyncignore --exclude-from="${TEMP_DIR}/mu-plugins-ext/.devenvignore"
fi

if [ "${MY_UID}" -eq 0 ]; then
Expand Down

0 comments on commit ac96424

Please sign in to comment.