Created
May 28, 2015 19:25
-
-
Save tylerdigital/e5616db2def62fc94af1 to your computer and use it in GitHub Desktop.
Update WordPress plugins and commit to git with WP-CLI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for plugin in `/usr/local/bin/wp plugin list --update=available --field=name`; do | |
| /usr/local/bin/wp plugin update $plugin | |
| git add . | |
| git add -u . | |
| git commit -m "Updating plugin $plugin" | |
| done |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
git add -Ashould work, but for some reason on our distribution/version of linux + git running on Digital Ocean, we had to use the older -u syntax