git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/sbin/ln-update
diff options
context:
space:
mode:
authormail_redacted_for_web 2018-09-13 09:22:17 +0200
committermail_redacted_for_web 2018-09-13 09:22:17 +0200
commitdf4d15ffda28eeeb4ccc188f5a10a6f8d63c8936 (patch)
tree2c32ec44252cdc537ba50446dd4dc828ec3a22fc /sbin/ln-update
parent60b9960ccc83c5d4a5b661d7f60afe73923bc45d (diff)
downloaddebian-scripts-df4d15ffda28eeeb4ccc188f5a10a6f8d63c8936.tar.bz2
Correction of updates count
Diffstat (limited to 'sbin/ln-update')
-rwxr-xr-xsbin/ln-update6
1 files changed, 3 insertions, 3 deletions
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