Remove rather than replace
This commit is contained in:
parent
e0b65c318b
commit
2cbdc9edcb
|
@ -45,8 +45,8 @@ function remove_bad_blog_links {
|
||||||
current_theme=$1
|
current_theme=$1
|
||||||
|
|
||||||
cd $BLOG_PATH/themes/$current_theme
|
cd $BLOG_PATH/themes/$current_theme
|
||||||
find ./ -type f -name *.css -exec sed -i -e 's/fonts.googleapis.com/localhost/g' {} \;
|
find ./ -type f -name *.css -exec sed -i -e '/fonts.googleapis.com/d' {} \;
|
||||||
find ./ -type f -name *.html -exec sed -i -e 's/fonts.googleapis.com/localhost/g' {} \;
|
find ./ -type f -name *.html -exec sed -i -e '/fonts.googleapis.com/d' {} \;
|
||||||
}
|
}
|
||||||
|
|
||||||
function ipfs_publish {
|
function ipfs_publish {
|
||||||
|
@ -82,10 +82,10 @@ function regenerate_blog {
|
||||||
fi
|
fi
|
||||||
make html
|
make html
|
||||||
|
|
||||||
# remova any google fonts
|
# remove any google fonts
|
||||||
cd $BLOG_PATH
|
cd $BLOG_PATH
|
||||||
find ./ -type f -name *.css -exec sed -i -e 's/fonts.googleapis.com/localhost/g' {} \;
|
find ./ -type f -name *.css -exec sed -i -e '/fonts.googleapis.com/d' {} \;
|
||||||
find ./ -type f -name *.html -exec sed -i -e 's/fonts.googleapis.com/localhost/g' {} \;
|
find ./ -type f -name *.html -exec sed -i -e '/fonts.googleapis.com/d' {} \;
|
||||||
|
|
||||||
ipfs_publish
|
ipfs_publish
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue