Refine status check comments in notify-bootc-user.sh
Updated status check comment to clarify jq usage.
This commit is contained in:
@@ -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)."
|
||||
|
||||
Reference in New Issue
Block a user