瀏覽代碼

Remove rather than replace

Bob Mottram 7 年之前
父節點
當前提交
2cbdc9edcb
共有 1 個文件被更改,包括 5 次插入5 次删除
  1. 5
    5
      src/freedombone-mesh-blog

+ 5
- 5
src/freedombone-mesh-blog 查看文件

@@ -45,8 +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 -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' {} \;
48
+    find ./ -type f -name *.css -exec sed -i -e '/fonts.googleapis.com/d' {} \;
49
+    find ./ -type f -name *.html -exec sed -i -e '/fonts.googleapis.com/d' {} \;
50 50
 }
51 51
 
52 52
 function ipfs_publish {
@@ -82,10 +82,10 @@ function regenerate_blog {
82 82
     fi
83 83
     make html
84 84
 
85
-    # remova any google fonts
85
+    # remove any google fonts
86 86
     cd $BLOG_PATH
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
+    find ./ -type f -name *.css -exec sed -i -e '/fonts.googleapis.com/d' {} \;
88
+    find ./ -type f -name *.html -exec sed -i -e '/fonts.googleapis.com/d' {} \;
89 89
 
90 90
     ipfs_publish
91 91
 }