ソースを参照

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
 }