Created
June 15, 2012 14:10
-
-
Save alessandro-fazzi/2936679 to your computer and use it in GitHub Desktop.
Install latest WordPress release in a specific path wigth a single command
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
#!/bin/bash | |
#Install latest WordPress release in a specific path | |
#and don't bother any more! :) | |
if [[ ! $1 ]]; then | |
echo "Please, pass to me destination path as first argument! :)" | |
exit 1 | |
fi | |
path=$1 | |
wget http://wordpress.org/latest.zip | |
unzip latest.zip -d $path && rm $path/latest.zip | |
cp -r $path/wordpress/* ./ && rm -rf $path/wordpress/ $path/latest.zip | |
echo "Finished!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment