From b13eaf356413a86d7c5787ab8445d0c2ade64cfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Thu, 25 Jun 2020 08:50:17 +0200 Subject: [PATCH] Remove APT warning --- cluster/apt.check.update.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cluster/apt.check.update.sh b/cluster/apt.check.update.sh index d3b4542..20797f2 100755 --- a/cluster/apt.check.update.sh +++ b/cluster/apt.check.update.sh @@ -69,7 +69,7 @@ debug_message() { # {{{ is_apt_upgrade_absent() { # {{{ ## Count the number of upgradable packages and substract 1 for the header - local_apt_upgrade_number="$(apt list --upgradable \ + local_apt_upgrade_number="$(apt list --upgradable 2>/dev/null \ | wc -l \ | awk '{print $1-1}')" @@ -93,7 +93,7 @@ APT upgrade available for this system: ${RED}${local_apt_upgrade_number:=/dev/nu is_apt_upgrade_present() { # {{{ ## Count the number of upgradable packages and substract 1 for the header - local_apt_upgrade_number="$(apt list --upgradable \ + local_apt_upgrade_number="$(apt list --upgradable 2>/dev/null \ | wc -l \ | awk '{print $1-1}')"