From 1c922f1bf1be14f7e556cf298132235229790cd9 Mon Sep 17 00:00:00 2001 From: LinuxSquare Date: Thu, 11 Jan 2024 19:49:06 +0100 Subject: [PATCH] sed - add inplace --- utils/pull | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/pull b/utils/pull index 9bcaddb..6ed2d17 100644 --- a/utils/pull +++ b/utils/pull @@ -17,7 +17,7 @@ function pullpod() { 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/\b$(echo $i)\b/$(echo $i): $(printenv | grep $i | cut -d= -f2)/g" "$(getValueByKey 'PODMAN_DIRECTORY')/${1}/docker-compose.yml" + sed -i "s/\b$(echo $i)\b/$(echo $i): $(printenv | grep $i | cut -d= -f2)/g" "$(getValueByKey 'PODMAN_DIRECTORY')/${1}/docker-compose.yml" done fi