From 8eed14d53857cab1464e004a2698c20e663f6711 Mon Sep 17 00:00:00 2001 From: LinuxSquare Date: Sat, 23 Dec 2023 13:59:38 +0100 Subject: [PATCH] First steps to inspect 3 --- utils/podman | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/podman b/utils/podman index e53acca..850b94a 100644 --- a/utils/podman +++ b/utils/podman @@ -26,7 +26,7 @@ function inspectpod() { echo -e "Container-Name: $(getLocalConfValue $(getValueByKey 'PODMAN_DIRECTORY')/${1} container.name) Network: $(getLocalConfValue $(getValueByKey 'PODMAN_DIRECTORY')/${1} network.name) -Status: $([[ -n $(podman container ls | grep $(getLocalConfValue $(getValueByKey 'PODMAN_DIRECTORY')/${1} container.name) ]] && $(echo -e '${GREEN}Running${RESET}') || $(echo -e '${RED}Stopped${RESET}')) +Status: [[ -n $(podman container ls | grep $(getLocalConfValue $(getValueByKey 'PODMAN_DIRECTORY')/${1} container.name) ]] && echo -e '${GREEN}Running${RESET}' || echo -e '${RED}Stopped${RESET}') Uptime: ${GREEN}$(podman container ls | grep ${1} | awk '{$1=$1};1' | cut -d' ' -f 7-8)${RESET}" }