Skip to content

Instantly share code, notes, and snippets.

@morganestes
Created September 15, 2016 02:54
Show Gist options
  • Select an option

  • Save morganestes/f6572486c424da18c99c9b9265380e31 to your computer and use it in GitHub Desktop.

Select an option

Save morganestes/f6572486c424da18c99c9b9265380e31 to your computer and use it in GitHub Desktop.
Update a directory full of Subversion repos
find . -type d -depth 1 -exec svn up {} \;
@morganestes
Copy link
Author

I have a folder full of WP Plugins that I want to keep updated with Subversion. Run this from the main directory to update all the plugins.

With this file structure…

main-dir/
  plugin-1/
  plugin-2/
  plugin-3/
morganestes at hogwarts in ~/main-dir
$ find . -type d -depth 1 -exec svn up {} \;
Updating 'plugin-1':
At revision 1497093.
Updating 'plugin-2':
At revision 1497093.
Updating 'plugin-3':
At revision 1497093.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment