Created
September 8, 2016 03:16
-
-
Save greenbicycle/00c1bed1cc498afb4661fde0861c0195 to your computer and use it in GitHub Desktop.
wp-cli-update script
This file contains 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
#!/bin/bash | |
# wp-cli-update | |
# | |
# Download the latest wp-cli and put it wherever it is supposed | |
# to go. | |
# | |
WPCLI_LOCATION=/usr/local/sbin/wp | |
curl https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar \ | |
-o $WPCLI_LOCATION | |
chmod u+x $WPCLI_LOCATION |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I don't think is necessary anymore. You can do
wp cli update
.