#!/bin/bash # Hermes cron job (no agent): stdout goes to Telegram, empty stdout sends # nothing, a non-zero exit sends an error alert. Silent while Hermes is on # the latest stable release. out=$("$HOME/.local/bin/hermes" update --check 2>&1) || { echo "Hermes update check failed:" echo "$out" | tail -5 exit 1 } grep -q "Up to date" <<<"$out" && exit 0 echo "Hermes on cogitator-02 has an update:" grep -v "^→ Update channel" <<<"$out" echo echo "Ask Claude to run it (backup, update, checks). Avoid /update in Telegram."