fixed IFS problems for some hooks

This commit is contained in:
tomo authored and neil committed 2025-12-27 11:02:40 +01:00
1 parent 17e0bbcbb6
commit 88e4d64c1a
1 file changed
+3 -1
+3 -1
View File
@@ -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")
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.