summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2021-11-16 05:18:13 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2021-11-16 05:19:14 +0000
commitf984b414d41aed2b71345491eda505a6d42a2c35 (patch)
treec19cc1a4a0d20e472631115ebb74a08fd5dffe46
parentReleasing version 20211115. (diff)
downloadcompute-tools-f984b414d41aed2b71345491eda505a6d42a2c35.tar.xz
compute-tools-f984b414d41aed2b71345491eda505a6d42a2c35.zip
Adding comment about using grep to de-colorize apt messages in container update command.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
-rwxr-xr-xlibexec/container/update1
1 files changed, 1 insertions, 0 deletions
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