git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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