Last active
August 29, 2015 14:00
-
-
Save jb55/bf4b360d8e7fabea26a4 to your computer and use it in GitHub Desktop.
Updating your travis png's to svg's
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 | |
README_NAME="Readme.md" | |
find . -name ".travis.yml" -maxdepth 3 -exec dirname {} \; > travis_dirs | |
find . -name "$README_NAME" -maxdepth 3 -exec sed -i "" "s/\.png/\.svg/" {} \; | |
for dir in $(<travis_dirs); do | |
cd $dir | |
git add "$README_NAME" | |
git commit -m "travis: png to svg" | |
git push origin master | |
cd - | |
done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I didn't have any pngs other than the travis one in my readmes so this is not robust at all if you have other PNGs in your readmes. Just need to update the sed replace... meh