sed - : to match
This commit is contained in:
parent
1c922f1bf1
commit
6732872e79
1 changed files with 1 additions and 1 deletions
|
@ -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 -i "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
|
||||
|
||||
|
|
Loading…
Reference in a new issue