Last active
March 8, 2016 21:46
-
-
Save trepmal/fe8fe06864192b6b001f to your computer and use it in GitHub Desktop.
regrab files that don't match checksums
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 | |
vers=$(wp core version) | |
for f in $(wp core verify-checksums --no-color 2>&1 >/dev/null | cut -d: -f3) | |
do | |
if [[ `curl -Is http://core.svn.wordpress.org/tags/$vers/$f | grep "200 OK"` ]] | |
then | |
echo "Fetching $f" | |
curl -so $f http://core.svn.wordpress.org/tags/$vers/$f | |
else | |
echo "Could not fetch: http://core.svn.wordpress.org/tags/$vers/$f" | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment