commit b85558d008814e85f1b67419053367a971c4aec3
parent 42dc8109b57fb9a62b0bc4db74bcedfc61e2a17b
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date: Sun, 2 Jun 2024 17:53:55 +0200
add verbose messages to script
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/run.sh b/run.sh
@@ -1,13 +1,16 @@
#!/usr/bin/env sh
# Generate site
+printf "Fetching feeds and generating html...\n"
perlanet config.yaml
# Insert Update time
+printf "Inserting update time...\n"
DATE=`date +%c`
sed -E -e "s/<!--UPDATED-->/$DATE/" -i index.html
# Insert feeds list
+printf "Inserting feeds list...\n"
FEEDS=`
grep -E '^\s*web:' config.yaml | \
awk '{ print "<a href=\""$NF"\">"$NF"</a><br>" }' | \
@@ -16,4 +19,5 @@ FEEDS=`
sed -E -e "s/<!--FEEDS-->/$FEEDS/" -i index.html
# remove images and iframes from article previews
+printf "Removing images and iframes...\n"
sed -E -e 's/<img[^>]*>//g' -e 's/<iframe[^>]*>//g' -i index.html