Created
October 2, 2016 12:37
-
-
Save eiskalteschatten/b4bcfe1876c3565b4dd0ce0ea40a58be to your computer and use it in GitHub Desktop.
Update WordPress with a Bash script using WP CLI
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 | |
function updateWordPress { | |
cd $1 | |
wp core update | |
wait | |
wp plugin update --all | |
wait | |
wp theme update --all | |
wait | |
wp core language update | |
wait | |
printf "\n\n" | |
} | |
echo "blog Name" | |
updateWordPress /path/to/blog |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment