From af63dfd8b83e10ba9022069c1ac2d9898a5dec7c Mon Sep 17 00:00:00 2001 From: Syndamia Date: Fri, 18 Jun 2021 15:53:15 +0300 Subject: Fixed make-descriptions script not removing diamond brackets --- make-descriptions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/make-descriptions.sh b/make-descriptions.sh index 44fcdcf..c1859a2 100755 --- a/make-descriptions.sh +++ b/make-descriptions.sh @@ -9,9 +9,9 @@ fi for file in $(find "$1" -type f -name "*.html"); do # Get text that matches "p>any amount of characters" and "(.+)<\/p" $file | sed "s/p>\|<\/p//g" | sed "s/^<.*//g" | grep .) + description=$(egrep -o "p>(.+)<\/p" $file | sed "s/p>\|<\/p//g" | sed "s/<.*//g" | grep .) # Get the first 200 characters description=${description::200} -- cgit v1.3.1-26-gb76a