This commit is contained in:
LinuxSquare 2024-01-11 19:45:48 +01:00
parent 6ff50600e2
commit 15aeff377c

View file

@ -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"