From 15aeff377c831b8902cbc2076eedcf13292bbaee Mon Sep 17 00:00:00 2001 From: LinuxSquare Date: Thu, 11 Jan 2024 19:45:48 +0100 Subject: [PATCH] Fix typo --- utils/pull | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/pull b/utils/pull index 1261f11..68bc505 100644 --- a/utils/pull +++ b/utils/pull @@ -13,8 +13,8 @@ function pullpod() { if [[ ! -d "$(getValueByKey 'PODMAN_DIRECTORY')/${1}" ]]; then git clone "$(getValueByKey 'GIT_REPOSITORY')/${1}.git" "$(getValueByKey 'PODMAN_DIRECTORY')/${1}" - if [[ $(getLocalConfValue '.container.hasEnvVars' ) == true ]]; then - for i in $(getLocalConfValue '.container.envVars[]'); do + if [[ $(getLocalConfValue "$(getValueByKey 'PODMAN_DIRECTORY')/${1}" '.container.hasEnvVars' ) == true ]]; then + for i in $(getLocalConfValue "$(getValueByKey 'PODMAN_DIRECTORY')/${1}" '.container.envVars[]'); do read -p "Please enter a value for '$i': " $(echo $i) export $(echo $i) sed "s/$(echo $i)/$(echo $i): $(printenv | grep $i | cut -d= -f2)/g"