Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.

Overwrite wp-includes directory when installing WordPress #311

Merged
merged 1 commit into from
Jan 8, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/check-diff.sh
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ function install_wp {

# Download `wp-includes` folder from the WordPress Core SVN repo to include built internal dependencies.
local SVN_CORE_URL=${SVN_URL/develop/core}
svn export -q "${SVN_CORE_URL}wp-includes" "$WP_CORE_DIR/src/wp-includes"
svn export -q --force "${SVN_CORE_URL}wp-includes" "$WP_CORE_DIR/src/wp-includes"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alternatively, this could also rsync the exported files on top of the the existing directory. Maybe this is what --force does in practice.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It appears not, --force replaces the folder. rsync could work here as well.


download https://raw.github.com/markoheijnen/wp-mysqli/master/db.php "$WP_CORE_DIR/src/wp-content/db.php"
}
Expand Down