chore: handle ctl command return 'true'
This commit is contained in:
parent
d885ac3dd8
commit
5050ddb174
2
dev
2
dev
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue