From 06efc9486e2df985b4f0c2822ea0961076b428c2 Mon Sep 17 00:00:00 2001 From: kx1t Date: Wed, 11 Dec 2024 14:07:42 -0500 Subject: [PATCH] made mast_expire less verbose --- rootfs/scripts/masto_expire.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/rootfs/scripts/masto_expire.sh b/rootfs/scripts/masto_expire.sh index 40df7e4..0052a62 100755 --- a/rootfs/scripts/masto_expire.sh +++ b/rootfs/scripts/masto_expire.sh @@ -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 \ No newline at end of file