浏览代码

Limit file types

Bob Mottram 7 年前
父节点
当前提交
e0b65c318b
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4
    2
      src/freedombone-mesh-blog

+ 4
- 2
src/freedombone-mesh-blog 查看文件

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
 }