From d97fe623016769c6f686aed11e4e7b3322c21de0 Mon Sep 17 00:00:00 2001 From: LinuxSquare Date: Sat, 23 Dec 2023 13:39:54 +0100 Subject: [PATCH] Replace manual jq with getLocalConfValue --- utils/podman | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/podman b/utils/podman index 0e9eb45..7a5c3e5 100644 --- a/utils/podman +++ b/utils/podman @@ -38,8 +38,8 @@ function startpod() { cd "$(getValueByKey 'PODMAN_DIRECTORY')/${1}" # check if network is needed - if [[ -n $(jq -r .network.name "$(getValueByKey 'PODMAN_DIRECTORY')/${1}/config.json") ]]; then - local network="$(jq -r .network.name $(getValueByKey 'PODMAN_DIRECTORY')/${1}/config.json)" + if [[ -n $(getLocalConfValue $(getValueByKey 'PODMAN_DIRECTORY')/${1} network.name) ]]; then + local network="$(getLocalConfValue $(getValueByKey 'PODMAN_DIRECTORY')/${1} network.name)" if [[ -z $(podman network ls | grep "$network") ]]; then podman network create "$network" fi