From df4d15ffda28eeeb4ccc188f5a10a6f8d63c8936 Mon Sep 17 00:00:00 2001 From: Harald Pfeiffer Date: Thu, 13 Sep 2018 09:22:17 +0200 Subject: Correction of updates count --- sbin/ln-update | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sbin/ln-update') diff --git a/sbin/ln-update b/sbin/ln-update index b54989c..73ee97a 100755 --- a/sbin/ln-update +++ b/sbin/ln-update @@ -253,7 +253,7 @@ fi # Make bash not break up the output into array elements on whitespaces but only on encountering line breaks IFS=$'\n' -UPDARR=( $("$APTBIN" list --upgradable 2>/dev/null) ) +UPDARR=( $("$APTBIN" list --upgradable 2>/dev/null|grep -v "^Listing") ) # ...done. unset IFS UPDCNT="${#UPDARR[@]}" @@ -264,8 +264,8 @@ case "$UPDCNT" in exit 0 ;; *) - [ "$SHUTUP" -ne 1 ]&&echo -e "$RETOGE" - [ "$LOGDMP" -eq 1 ]&&logger -p"info" -t"$LOGTARG" "Apt database updated." + [ "$SHUTUP" -ne 1 ]&&echo -e "$RETOGE ($UPDCNT updates)." + [ "$LOGDMP" -eq 1 ]&&logger -p"info" -t"$LOGTARG" "Apt database updated ($UPDCNT updates)." ;; esac -- cgit v1.2.3