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
|
# 1. Upgrade ausführen
|
||||||
$BOOTC upgrade
|
$BOOTC upgrade
|
||||||
|
|
||||||
# 2. Status-Check
|
# 2. Status-Check mit jq
|
||||||
# PRÜFUNG ANGEPASST: Wir prüfen, ob der Status EXPLIZIT 'staged: null' enthält.
|
# Wenn .status.staged gleich null ist, liefert jq den Exit-Code 0 (wahr)
|
||||||
# Wenn dies der Fall ist, bedeutet es "System aktuell".
|
|
||||||
if $BOOTC status --json | jq -e '.status.staged == null' >/dev/null; then
|
if $BOOTC status --json | jq -e '.status.staged == null' >/dev/null; then
|
||||||
# KEIN Update gefunden
|
# KEIN Update gefunden
|
||||||
$LOGGER -t "$TAG" "System aktuell (keine Updates vorhanden)."
|
$LOGGER -t "$TAG" "System aktuell (keine Updates vorhanden)."
|
||||||
|
|||||||
Reference in New Issue
Block a user