fix(ServiceManager): add sentinel to argument serialization in exec definition

This commit is contained in:
Yehonal
2025-10-13 00:19:12 +02:00
parent 2717104dc4
commit bca1cb7168

View File

@@ -172,7 +172,7 @@ function serialize_exec_definition() {
done done
local args_json local args_json
args_json=$(printf '%s\0' "${rel_args[@]}" | jq -R -s 'split("\u0000")[:-1]') args_json=$(printf '%s\0' "${rel_args[@]}" "__AC_SENTINEL__" | jq -R -s 'split("\u0000")[:-1]')
jq -n --arg command "$rel_command" --argjson args "$args_json" '{command: $command, args: $args}' jq -n --arg command "$rel_command" --argjson args "$args_json" '{command: $command, args: $args}'
} }