-
-
Save cjmosure/8368150 to your computer and use it in GitHub Desktop.
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 | |
#Download the latest copy of WordPress into a directory, grab all the files in the new /wordpress folder | |
#Put all the files in the current directory, remove the now empty /wordpress directory | |
#Remove the tarball | |
#download latest wordpress with wget | |
wget http://wordpress.org/latest.tar.gz | |
#OR using CURL | |
#curl -O http://wordpress.org/latest.tar.gz | |
#De-compress the tarball | |
tar -zxvf latest.tar.gz | |
#Copy everything from the new WordPress Directory into current directory | |
cp -rvf wordpress/* . | |
#Remove the wordpress folder | |
rm -R wordpress | |
#remove the tarball | |
rm latest.tar.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment