diff options
author | haturatu <taro@eyes4you.org> | 2024-11-11 00:11:47 +0900 |
---|---|---|
committer | haturatu <taro@eyes4you.org> | 2024-11-11 00:11:47 +0900 |
commit | a891b6437a15e02e2e47f217a60875ab70323e44 (patch) | |
tree | 118e576f320da0f8b9145fb9efde2908a9ecfad8 | |
parent | dd43edb1a81d929e685f1d84a1459e222aa2014c (diff) |
update
-rw-r--r-- | lumebuild.sh | 5 |
1 files changed, 3 insertions, 2 deletions
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 <<EOF @@ -46,6 +46,7 @@ EOF` } {print} ' "$LAST_POST" > 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 |