Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
1 files changed, 4 insertions, 5 deletions
-rwxr-xr-xgenerate.sh9
diff --git a/generate.sh b/generate.sh
index 0bc2b5c..1360903 100755
--- a/generate.sh
+++ b/generate.sh
@@ -79,11 +79,10 @@ mkdir -p "$DST.tiny"
cp -a "$DST/." "$DST.tiny"
rm -rf "$DST.tiny"/*.css "$DST.tiny"/fonts/
-$AWK '
- !/rel="stylesheet"/ && !/<script/ && !/class="btn/ {
- print > FILENAME
- }
-' \
+sed -i \
+ -e '/rel="stylesheet"/d' \
+ -e '/<script/d' \
+ -e '/class="btn/d' \
$(find "$DST.tiny" -type f -name "*.html")
echo "[4/4] Created tiny website in '$DST.tiny'"