From 2cbdc9edcb315b38dd22d284324f57ec8591adc5 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 30 Dec 2017 20:29:24 +0000 Subject: [PATCH] Remove rather than replace --- src/freedombone-mesh-blog | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/freedombone-mesh-blog b/src/freedombone-mesh-blog index 7d4db15b..366b87c4 100755 --- a/src/freedombone-mesh-blog +++ b/src/freedombone-mesh-blog @@ -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 }