chore: handle ctl command return 'true'

This commit is contained in:
zmstone 2024-05-23 08:58:31 +02:00
parent d885ac3dd8
commit 5050ddb174
1 changed files with 2 additions and 0 deletions

2
dev
View File

@ -506,6 +506,8 @@ ctl() {
case rpc:call('$EMQX_NODE_NAME', emqx_ctl, run_command, [[$args]]) of case rpc:call('$EMQX_NODE_NAME', emqx_ctl, run_command, [[$args]]) of
ok -> ok ->
init:stop(0); init:stop(0);
true ->
init:stop(0);
Error -> Error ->
io:format(\"~p~n\", [Error]), io:format(\"~p~n\", [Error]),
init:stop(1) init:stop(1)