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