Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit51e6043190563a60bdf86cd70a1364f37d3af59e (patch)
Author
 Syndamia <kamen@syndamia.com>
2022-09-27 19:51:33 +0300
Committer
 Syndamia <kamen@syndamia.com>
2022-09-27 19:51:33 +0300
Filesce887ff49f705774c9d79df6bb29d1b1eb79dd38
syndamia.com-51e6043190563a60bdf86cd70a1364f37d3af59e.tar
syndamia.com-51e6043190563a60bdf86cd70a1364f37d3af59e.tar.gz
syndamia.com-51e6043190563a60bdf86cd70a1364f37d3af59e.zip
Parentdf118742a3040184b785835a1e8fa3925c20c89e (diff)
[hooks] make-description now ignores lines taht start with ampersand, since those should be ftags and could break things
1 files changed, 1 insertions, 1 deletions
-rwxr-xr-xgenerate-hooks/make-descriptions.sh2
diff --git a/generate-hooks/make-descriptions.sh b/generate-hooks/make-descriptions.sh
index 49417f5..1a4ace4 100755
--- a/generate-hooks/make-descriptions.sh
+++ b/generate-hooks/make-descriptions.sh
@@ -11,7 +11,7 @@ for file in $(find "$1" -type f -name "*.html"); do
# remove the "p>" and "</p" from result
# 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 only when it's longer than 200 characters
if [ ${#description} -gt 200 ]; then