ソースを参照

Limit file types

Bob Mottram 7 年 前
コミット
e0b65c318b
共有1 個のファイルを変更した4 個の追加2 個の削除を含む
  1. 4
    2
      src/freedombone-mesh-blog

+ 4
- 2
src/freedombone-mesh-blog ファイルの表示

@@ -45,7 +45,8 @@ function remove_bad_blog_links {
45 45
     current_theme=$1
46 46
 
47 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 52
 function ipfs_publish {
@@ -83,7 +84,8 @@ function regenerate_blog {
83 84
 
84 85
     # remova any google fonts
85 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 90
     ipfs_publish
89 91
 }