Skip to content

Commit

Permalink
made mast_expire less verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
kx1t committed Dec 11, 2024
1 parent 5530847 commit 06efc94
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions rootfs/scripts/masto_expire.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,12 @@ while : ; do
(( unexpired++ )) || true
fi
else
"${s6wrap[@]}" echo "No more Toots; done!"
if chk_enabled "$MASTODON_DEBUG"; then "${s6wrap[@]}" echo "No more Toots; done!"; fi
exit
fi
done
output+=("($unexpired unexpired; $expired expired; oldest $(date -d "@$oldest") ($(( (now - oldest)/(60*60*24) )) days); newest $(date -d "@$newest") ($(( (now - newest)/(60*60*24) )) days))")
"${s6wrap[@]}" echo "${output[@]}"
if chk_enabled "$MASTODON_DEBUG"; then
output+=("($unexpired unexpired; $expired expired; oldest $(date -d "@$oldest") ($(( (now - oldest)/(60*60*24) )) days); newest $(date -d "@$newest") ($(( (now - newest)/(60*60*24) )) days))")
"${s6wrap[@]}" echo "${output[@]}"
fi
done

0 comments on commit 06efc94

Please sign in to comment.