From f984b414d41aed2b71345491eda505a6d42a2c35 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 16 Nov 2021 06:18:13 +0100 Subject: Adding comment about using grep to de-colorize apt messages in container update command. Signed-off-by: Daniel Baumann --- libexec/container/update | 1 + 1 file changed, 1 insertion(+) (limited to 'libexec') diff --git a/libexec/container/update b/libexec/container/update index 80f154a..cf26de9 100755 --- a/libexec/container/update +++ b/libexec/container/update @@ -128,6 +128,7 @@ do ;; *) + # usefull use of grep to de-colorize apt output PACKAGES="$(for PACKAGE in $(container run -n ${NAME} -- "apt list \-\-upgradable 2>/dev/null | grep '\/'" | awk -F/ '{ print $1 }'); do echo -n "${PACKAGE} "; done | sed -e 's| $||'; echo)" case "${FULL_UPGRADE}" in -- cgit v1.2.3