aboutsummaryrefslogtreecommitdiff
path: root/blogrss
diff options
context:
space:
mode:
authorPhilip Wittamore <philip@wittamore.com>2026-07-01 11:16:59 +0200
committerPhilip Wittamore <philip@wittamore.com>2026-07-01 11:16:59 +0200
commit719171cfb9e50aa42137c91f62a0f3a6d93f4dc6 (patch)
treee942691223e273459d4c08ddbb98429955d1e404 /blogrss
parent5c1603cec943a0516fd841a976c270b952e3f5f7 (diff)
update
Diffstat (limited to 'blogrss')
-rwxr-xr-xblogrss4
1 files changed, 2 insertions, 2 deletions
diff --git a/blogrss b/blogrss
index 528e450..2c98b59 100755
--- a/blogrss
+++ b/blogrss
@@ -66,8 +66,8 @@ for POSTS in "${POSTARRAY[@]}"; do
POSTDATE=$(grep -o '>.*</h3>' "$POST" | sed 's/\(>\|<\/h3>\)//g')
POSTNAME=${POST##*/}
LINKADDR="$YLINK/$POSTNAME"
- DESC="$(sed -n '/<h4>.*/,/*.<\/h4>/{p;q;}' "$POST" | sed -e 's/<[^>]\+>/ /g' -e 's|<h4>||g' -e 's|</h4>||g' -e 's|"||g')"
- DESC="$(echo $DESC | sed 's/^[ \t]*//;s/[ \t]*$//')"
+ DESC="$(sed -n '/<h4>.*/,/*.<\/h4>/{p;q;}' "$POST" |
+ sed -e 's/<[^>]\+>/ /g' -e 's|<h4>||g' -e 's|</h4>||g' -e 's|"||g' -e 's/^[ \t]*//;s/[ \t]*$//')"
builditem "$POST"
done
combine