diff options
author | mail_redacted_for_web | 2018-09-13 09:22:17 +0200 |
---|---|---|
committer | mail_redacted_for_web | 2018-09-13 09:22:17 +0200 |
commit | df4d15ffda28eeeb4ccc188f5a10a6f8d63c8936 (patch) | |
tree | 2c32ec44252cdc537ba50446dd4dc828ec3a22fc /sbin/ln-update | |
parent | 60b9960ccc83c5d4a5b661d7f60afe73923bc45d (diff) | |
download | debian-scripts-df4d15ffda28eeeb4ccc188f5a10a6f8d63c8936.tar.bz2 |
Correction of updates count
Diffstat (limited to 'sbin/ln-update')
-rwxr-xr-x | sbin/ln-update | 6 |
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 |