Ver código fonte

Remove rather than replace

Bob Mottram 7 anos atrás
pai
commit
2cbdc9edcb
1 arquivos alterados com 5 adições e 5 exclusões
  1. 5
    5
      src/freedombone-mesh-blog

+ 5
- 5
src/freedombone-mesh-blog Ver arquivo

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 -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
 function ipfs_publish {
52
 function ipfs_publish {
82
     fi
82
     fi
83
     make html
83
     make html
84
 
84
 
85
-    # remova any google fonts
85
+    # remove any google fonts
86
     cd $BLOG_PATH
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
     ipfs_publish
90
     ipfs_publish
91
 }
91
 }