From e0b65c318b21a13818720f4a7ca7e39eabbf2131 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 30 Dec 2017 20:21:07 +0000 Subject: [PATCH] Limit file types --- src/freedombone-mesh-blog | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/freedombone-mesh-blog b/src/freedombone-mesh-blog index 54bf23d6..7d4db15b 100755 --- a/src/freedombone-mesh-blog +++ b/src/freedombone-mesh-blog @@ -45,7 +45,8 @@ function remove_bad_blog_links { current_theme=$1 cd $BLOG_PATH/themes/$current_theme - find ./ -type f -exec sed -i -e 's/fonts.googleapis.com/localhost/g' {} \; + 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' {} \; } function ipfs_publish { @@ -83,7 +84,8 @@ function regenerate_blog { # remova any google fonts cd $BLOG_PATH - find ./ -type f -exec sed -i -e 's/fonts.googleapis.com/localhost/g' {} \; + 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' {} \; ipfs_publish }