Remove rather than replace

This commit is contained in:
Bob Mottram 2017-12-30 20:29:24 +00:00
parent e0b65c318b
commit 2cbdc9edcb
1 changed files with 5 additions and 5 deletions

View File

@ -45,8 +45,8 @@ function remove_bad_blog_links {
current_theme=$1
cd $BLOG_PATH/themes/$current_theme
find ./ -type f -name *.css -exec sed -i -e 's/fonts.googleapis.com/localhost/g' {} \;
find ./ -type f -name *.html -exec sed -i -e 's/fonts.googleapis.com/localhost/g' {} \;
find ./ -type f -name *.css -exec sed -i -e '/fonts.googleapis.com/d' {} \;
find ./ -type f -name *.html -exec sed -i -e '/fonts.googleapis.com/d' {} \;
}
function ipfs_publish {
@ -82,10 +82,10 @@ function regenerate_blog {
fi
make html
# remova any google fonts
# remove any google fonts
cd $BLOG_PATH
find ./ -type f -name *.css -exec sed -i -e 's/fonts.googleapis.com/localhost/g' {} \;
find ./ -type f -name *.html -exec sed -i -e 's/fonts.googleapis.com/localhost/g' {} \;
find ./ -type f -name *.css -exec sed -i -e '/fonts.googleapis.com/d' {} \;
find ./ -type f -name *.html -exec sed -i -e '/fonts.googleapis.com/d' {} \;
ipfs_publish
}