From a82cd0ed73e96e2aed1afdf3b30732a4d427b958 Mon Sep 17 00:00:00 2001 From: xf0r3m Date: Sat, 15 Jul 2023 08:57:56 +0200 Subject: [PATCH] =?utf8?q?Przekierowanie=20strumienia=20b=C5=82ed=C3=B3w?= =?utf8?q?=20polecenia=20'lxc'=20w=20funkcji=20'idle-list-containers'?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- idle.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/idle.sh b/idle.sh index 6abb981..237c5cf 100644 --- a/idle.sh +++ b/idle.sh @@ -45,7 +45,7 @@ function idle-list-containers() { exit 1; else for container in $(cut -d ";" -f 3 $DATABASE | awk '{printf $1" "}'); do - if lxc info $container >> /dev/null; then + if lxc info $container >> /dev/null 2>&1; then installed="\e[32m\u2714\e[0m"; else installed="\e[31m\u2716\e[0m"; -- 2.39.5