From c45187a35334f781b9d050ce45867e768ce3c4fd Mon Sep 17 00:00:00 2001 From: LinuxSquare Date: Sat, 23 Dec 2023 13:56:07 +0100 Subject: [PATCH] First steps to inspect 2 --- utils/podman | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/podman b/utils/podman index d0431e6..e53acca 100644 --- a/utils/podman +++ b/utils/podman @@ -24,9 +24,9 @@ function inspectpod() { exit 1 fi - echo -ne "Container-Name: $(getLocalConfValue $(getValueByKey 'PODMAN_DIRECTORY')/${1} container.name) + 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)) ]] && ${GREEN} Running ${RESET} || ${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}" }