ソースを参照

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
 }