mirror of
https://github.com/ergosteur/ergo-proxmox-scripts.git
synced 2026-10-28 13:00:37 -04:00
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:
co-authored by
Claude Opus 5
parent
5f13cc4d96
commit
870cf64222
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user