summaryrefslogtreecommitdiff
path: root/lumebuild.sh
diff options
context:
space:
mode:
Diffstat (limited to 'lumebuild.sh')
-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