mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-06-15 09:42:45 +00:00
fixed IFS problems for some hooks
This commit is contained in:
parent
bc23e8ca30
commit
7949c10934
@ -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…
x
Reference in New Issue
Block a user