diff options
author | haturatu <taro@eyes4you.org> | 2025-02-23 22:36:56 +0900 |
---|---|---|
committer | haturatu <taro@eyes4you.org> | 2025-02-23 22:36:56 +0900 |
commit | eda19d0aea25e65bd66ff02537b11180feb611bd (patch) | |
tree | 77c6be74b1d335d3381a0351d4011a73cbceb6d8 | |
parent | 5743afcaa5f8d6d60e70b19a3794f8eb7742c80d (diff) |
fix: コメントあるかどうかの判定直した
-rwxr-xr-x | lumebuild.sh | 3 |
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 |