diff options
author | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2021-11-16 05:18:13 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2021-11-16 05:19:14 +0000 |
commit | f984b414d41aed2b71345491eda505a6d42a2c35 (patch) | |
tree | c19cc1a4a0d20e472631115ebb74a08fd5dffe46 /libexec/container/update | |
parent | Releasing version 20211115. (diff) | |
download | compute-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>
Diffstat (limited to '')
-rwxr-xr-x | libexec/container/update | 1 |
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 |