From a891b6437a15e02e2e47f217a60875ab70323e44 Mon Sep 17 00:00:00 2001 From: haturatu Date: Mon, 11 Nov 2024 00:11:47 +0900 Subject: update --- lumebuild.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lumebuild.sh') diff --git a/lumebuild.sh b/lumebuild.sh index a0fa455..2416141 100644 --- a/lumebuild.sh +++ b/lumebuild.sh @@ -29,7 +29,7 @@ build() { fedi_posts() { LAST_POST=`ls -tr | tail -1` - POST_URL=`echo "$BLOG_URL/$POST_URL_DIR/$LAST_POST" | sed "s/\.md//g"` + POST_URL=`echo "$BLOG_URL/$POST_URL_DIR/$LAST_POST/" | sed "s/\.md//g"` TITLE=`grep "^title: " "$LAST_POST" | sed "s/^title: //g"` MSTDN_URL=`toot post "$TITLE - $POST_URL" | sed "s/Toot posted: //g" ` INS_TXT=`cat < tmp && mv tmp "$LAST_POST" + sed -i '/comments: {}/d' "$LAST_POST" } git_commit @@ -54,7 +55,7 @@ if [ $? -eq 0 ]; then $WEBPSH cd $SRC_DIR/$POST_URL_DIR || exit - grep "^comments:" "$(ls -tr | tail -1)" + grep "^comments:$" "$(ls -tr | tail -1)" if [ $? -eq 0 ]; then build -- cgit v1.2.3