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"