From 4a9eebcad2a634e926a2447a22b21c85f1696b4f Mon Sep 17 00:00:00 2001 From: Daniele Fucini Date: Wed, 14 Oct 2026 13:06:40 +0200 Subject: [PATCH] Warn when aur repo -u fails Print a warning instead of silently counting 0 AUR updates, and stop discarding aur's stderr so the cause shows up in the journal. --- update-notify | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/update-notify b/update-notify index ed7a8b6..e60803a 100755 --- a/update-notify +++ b/update-notify @@ -88,7 +88,11 @@ arch_updates=${#arch_list[@]} aur_updates=0 if command -v aur >/dev/null 2>&1; then - aur_updates=$(aur repo -u -d "$AUR_REPO" 2>/dev/null | wc -l) + if aur_out=$(aur repo -u -d "$AUR_REPO"); then + [[ -n $aur_out ]] && aur_updates=$(wc -l <<< "$aur_out") + else + echo "aur repo -u failed, AUR updates not counted" >&2 + fi fi updates=$((arch_updates + aur_updates))