summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhaturatu <taro@eyes4you.org>2025-02-23 22:36:56 +0900
committerhaturatu <taro@eyes4you.org>2025-02-23 22:36:56 +0900
commiteda19d0aea25e65bd66ff02537b11180feb611bd (patch)
tree77c6be74b1d335d3381a0351d4011a73cbceb6d8
parent5743afcaa5f8d6d60e70b19a3794f8eb7742c80d (diff)
fix: コメントあるかどうかの判定直した
-rwxr-xr-xlumebuild.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/lumebuild.sh b/lumebuild.sh
index a1f5abb..57450d2 100755
--- a/lumebuild.sh
+++ b/lumebuild.sh
@@ -73,9 +73,8 @@ if [ $? -eq 0 ]; then
$WEBPSH
cd $SRC_DIR/$POST_URL_DIR || exit
- egrep "^comments:" "$(ls -tr | tail -1)" | grep "}"
- if [ $? -eq 0 ]; then
+ if ! grep -A 1 -Eqi "^comments:" "$(ls -tr | tail -1)" | grep "}" ; then
if [ "$FEDI_CMT" = "y" ]; then
fedi_posts
git_commit