Browse Source

fixed IFS problems for some hooks

pull/6241/head
tomo 2 weeks ago
parent
commit
7949c10934
No known key found for this signature in database GPG Key ID: 5FB8BCB7CE54EE44
  1. 4
      deploy/multideploy.sh

4
deploy/multideploy.sh

@ -233,7 +233,9 @@ _deploy_services() {
_services=$(yq e '.services[].name' "$_deploy_file")
_debug3 "Services" "$_services"
printf '%s\n' "$_services" | while IFS= read -r _service; do
_service_list=$(printf '%s\n' "$_services")
for _service in $(printf '%s\n' "$_service_list"); do
_debug2 "Service" "$_service"
_hook=$(yq e ".services[] | select(.name == \"$_service\").hook" "$_deploy_file")
_envs=$(yq e ".services[] | select(.name == \"$_service\").environment[]" "$_deploy_file")

Loading…
Cancel
Save