From e0041d998c5b34e10f6aa103d4115dd0df0a5c39 Mon Sep 17 00:00:00 2001 From: Gitouche Date: Tue, 11 Jun 2024 21:59:32 +0200 Subject: [PATCH] fix podman-compose + python (3/x) --- functions.sh | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/functions.sh b/functions.sh index f443ebe..4ca9c33 100644 --- a/functions.sh +++ b/functions.sh @@ -351,16 +351,14 @@ oci_push_to_registry () { fi } -my_podman_compose () { - podman_compose_path=$(which podman-compose) - - if [[ ! -z ${podman_compose_path} ]]; then - for py in python3.9 python3.6; do - ${py} ${podman_compose_path} --version 2>/dev/null 1>&2 - if [[ $? -eq 0 ]]; then - "${py} ${podman_compose_path} ${@}" - break - fi - done - fi +podman_compose_path=$(which podman-compose) +if [[ ! -z ${podman_compose_path} ]]; then + for py in python3.9 python3.6; do + ${py} ${podman_compose_path} --version 2>/dev/null 1>&2 + if [[ $? -eq 0 ]]; then + my_podman_compose="${py} ${podman_compose_path}" + break + fi + done +fi }