diff --git a/scripts/notify-bootc-user.sh b/scripts/notify-bootc-user.sh index e68e701..4561908 100755 --- a/scripts/notify-bootc-user.sh +++ b/scripts/notify-bootc-user.sh @@ -13,9 +13,8 @@ TAG="bootc-timer" # 1. Upgrade ausführen $BOOTC upgrade -# 2. Status-Check -# PRÜFUNG ANGEPASST: Wir prüfen, ob der Status EXPLIZIT 'staged: null' enthält. -# Wenn dies der Fall ist, bedeutet es "System aktuell". +# 2. Status-Check mit jq +# Wenn .status.staged gleich null ist, liefert jq den Exit-Code 0 (wahr) if $BOOTC status --json | jq -e '.status.staged == null' >/dev/null; then # KEIN Update gefunden $LOGGER -t "$TAG" "System aktuell (keine Updates vorhanden)."