Refine status check comments in notify-bootc-user.sh

Updated status check comment to clarify jq usage.
This commit is contained in:
humocs-man
2026-05-17 20:32:49 +02:00
committed by GitHub
parent 7750a86a49
commit 2ab170c4bf
+2 -3
View File
@@ -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)."