git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/sbin/ln-update
diff options
context:
space:
mode:
authorH. P. <harald.p.@xmart.de> 2018-08-23 18:18:36 +0200
committerH. P. <harald.p.@xmart.de> 2018-08-23 18:18:36 +0200
commite1c3f98e81814281fb0949e7839d2f0d82dacb1b (patch)
tree9074f333ec6329dedb1288a004f234889b89dc87 /sbin/ln-update
parent42518cee1ebd0752e575f1f8df1ea040221ca9e9 (diff)
downloaddebian-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-xsbin/ln-update2
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."