From 6e2131c1c2a88d69535e1c742eccf0a0b1b60e18 Mon Sep 17 00:00:00 2001 From: Balakrishnan Balasubramanian Date: Fri, 4 Jul 2025 19:19:36 -0400 Subject: [PATCH] formatting --- run.sh | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/run.sh b/run.sh index b96fdee..1701711 100755 --- a/run.sh +++ b/run.sh @@ -23,11 +23,9 @@ process() { curl --fail -s -X PUT "$MURL/v1/entries" \ --json "$(jo "entry_ids[]=$eid" status=unread)" \ -H "X-Auth-Token: $MINIFLUX_TOKEN" - } main() { - local w1 w2 if [ "$(date +%A)" = Thursday ]; then @@ -49,12 +47,11 @@ main() { mlr --l2n \ filter '$title =~ "\[\$\]"' \ 'then' filter -s w1="$w1" -s w2="$w2" '$published_at > @w2 && $published_at < @w1' \ - 'then' cut -of id,title | while read -r eid title; do - - echo "processing entry: $eid title: $title" - process "$eid" "$title" - done - + 'then' cut -of id,title | + while read -r eid title; do + echo "processing entry: $eid title: $title" + process "$eid" "$title" + done } main