Quellcode durchsuchen

Limit file types

Bob Mottram vor 7 Jahren
Ursprung
Commit
e0b65c318b
1 geänderte Dateien mit 4 neuen und 2 gelöschten Zeilen
  1. 4
    2
      src/freedombone-mesh-blog

+ 4
- 2
src/freedombone-mesh-blog Datei anzeigen

@@ -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
 }