formatting

This commit is contained in:
2025-07-04 19:19:36 -04:00
parent ccc633f4b0
commit 6e2131c1c2

7
run.sh
View File

@ -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
'then' cut -of id,title |
while read -r eid title; do
echo "processing entry: $eid title: $title"
process "$eid" "$title"
done
}
main