diff options
author | H. P. <harald.p.@xmart.de> | 2018-08-23 18:18:36 +0200 |
---|---|---|
committer | H. P. <harald.p.@xmart.de> | 2018-08-23 18:18:36 +0200 |
commit | e1c3f98e81814281fb0949e7839d2f0d82dacb1b (patch) | |
tree | 9074f333ec6329dedb1288a004f234889b89dc87 /sbin/ln-update | |
parent | 42518cee1ebd0752e575f1f8df1ea040221ca9e9 (diff) | |
download | debian-scripts-e1c3f98e81814281fb0949e7839d2f0d82dacb1b.tar.bz2 |
Piping errors in apt update to /dev/null (critical ones will make it fail anyway
Diffstat (limited to 'sbin/ln-update')
-rwxr-xr-x | sbin/ln-update | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/ln-update b/sbin/ln-update index 69640d7..07b46dd 100755 --- a/sbin/ln-update +++ b/sbin/ln-update @@ -244,7 +244,7 @@ esac [ "$SHUTUP" -ne 1 ]&&retinit "Updating Apt database" #"$SUDBIN" "$APTBIN" -qqq update -"$APTBIN" -qqq update +"$APTBIN" -qqq update 2>/dev/null if [ "$?" -ne 0 ];then [ "$SHUTUP" -ne 1 ]&&echo -e "$RETERR" [ "$LOGDMP" -eq 1 ]&&logger -p"error" -t"$LOGTARG" "Cannot update apt database." |