From 2ab170c4bfc000a93d61caac2ce1cbb06ee10e44 Mon Sep 17 00:00:00 2001 From: humocs-man <251756307+humocs-man@users.noreply.github.com> Date: Sun, 17 May 2026 20:32:49 +0200 Subject: [PATCH] Refine status check comments in notify-bootc-user.sh Updated status check comment to clarify jq usage. --- scripts/notify-bootc-user.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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)."