Suppress version banner under --cron

The version line printed unconditionally, so the nightly job would mail a
one-line message on every run even when there was nothing to download. Guard
it like the other status output, leaving interactive runs unchanged.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
ergosteur
2026-08-06 16:14:52 +00:00
co-authored by Claude Opus 5
parent 5f13cc4d96
commit 870cf64222
+1
View File
@@ -36,6 +36,7 @@ for link in soup.find_all('a', href=True):
break
if latest_iso_link and version_number:
if not args.cron:
print(f"Version Number: {version_number}")
# Construct the download URL