Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commitaf63dfd8b83e10ba9022069c1ac2d9898a5dec7c (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2021-06-18 15:53:15 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2021-06-18 15:53:15 +0300
Filesa7b99ec86605a0de160b2ea0027306c12641adcd
syndamia.com-af63dfd8b83e10ba9022069c1ac2d9898a5dec7c.tar
syndamia.com-af63dfd8b83e10ba9022069c1ac2d9898a5dec7c.tar.gz
syndamia.com-af63dfd8b83e10ba9022069c1ac2d9898a5dec7c.zip
Parent0bde2265b87c23f8c261c9b313cf657e93a57c93 (diff)
Fixed make-descriptions script not removing diamond brackets
1 files changed, 2 insertions, 2 deletions
-rwxr-xr-xmake-descriptions.sh4
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</p" from current file
# remove the "p>" and "</p" from result
- # make lines that start with "<" blank
+ # make everything that starts with "<" blank
# take all lines that aren't blank
- description=$(egrep -o "p>(.+)<\/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}