Browse Source

Limit file types

Bob Mottram 7 years ago
parent
commit
e0b65c318b
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      src/freedombone-mesh-blog

+ 4
- 2
src/freedombone-mesh-blog View File

45
     current_theme=$1
45
     current_theme=$1
46
 
46
 
47
     cd $BLOG_PATH/themes/$current_theme
47
     cd $BLOG_PATH/themes/$current_theme
48
-    find ./ -type f -exec sed -i -e 's/fonts.googleapis.com/localhost/g' {} \;
48
+    find ./ -type f -name *.css -exec sed -i -e 's/fonts.googleapis.com/localhost/g' {} \;
49
+    find ./ -type f -name *.html -exec sed -i -e 's/fonts.googleapis.com/localhost/g' {} \;
49
 }
50
 }
50
 
51
 
51
 function ipfs_publish {
52
 function ipfs_publish {
83
 
84
 
84
     # remova any google fonts
85
     # remova any google fonts
85
     cd $BLOG_PATH
86
     cd $BLOG_PATH
86
-    find ./ -type f -exec sed -i -e 's/fonts.googleapis.com/localhost/g' {} \;
87
+    find ./ -type f -name *.css -exec sed -i -e 's/fonts.googleapis.com/localhost/g' {} \;
88
+    find ./ -type f -name *.html -exec sed -i -e 's/fonts.googleapis.com/localhost/g' {} \;
87
 
89
 
88
     ipfs_publish
90
     ipfs_publish
89
 }
91
 }