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