mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
fix(ServiceManager): add sentinel to argument serialization in exec definition
This commit is contained in:
@@ -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}'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user