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

Conversation

pierlon
Copy link
Contributor

@pierlon pierlon commented Jan 7, 2020

Overwrite wp-includes folder when downloading from Core SVN repository. This would prevent the error:

svn: E155000: Destination directory exists; please remove the directory or use --force to overwrite

Relates to #310.

@pierlon pierlon requested a review from kasparsd January 7, 2020 21:43
@@ -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.

@kasparsd kasparsd merged commit 31c7236 into master Jan 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants