Created
November 15, 2012 20:10
-
-
Save HoundstoothSTL/4080955 to your computer and use it in GitHub Desktop.
Download Wordpress through terminal and cleanup
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 | |
#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
Hi, curl -O doesn't work. You have to use crul -OL