mirror of
https://gitee.com/dgiiot/dgiot.git
synced 2024-12-02 04:08:54 +08:00
fix: io:format(Profile) error
This commit is contained in:
parent
00b6d6d098
commit
ed68f25b87
@ -33,9 +33,8 @@
|
|||||||
|
|
||||||
%% 注册通道类型
|
%% 注册通道类型
|
||||||
-channel_type(#{
|
-channel_type(#{
|
||||||
|
|
||||||
cType => ?TYPE,
|
cType => ?TYPE,
|
||||||
type => ?BRIDGE_CHL,
|
type => ?PROTOCOL_CHL,
|
||||||
title => #{
|
title => #{
|
||||||
zh => <<"MQTT资源通道"/utf8>>
|
zh => <<"MQTT资源通道"/utf8>>
|
||||||
},
|
},
|
||||||
|
@ -99,7 +99,6 @@ inject(Profile) ->
|
|||||||
%% list the profile/lib dir to get all apps
|
%% list the profile/lib dir to get all apps
|
||||||
list_apps(LibDir) ->
|
list_apps(LibDir) ->
|
||||||
Apps = filelib:wildcard("*", LibDir),
|
Apps = filelib:wildcard("*", LibDir),
|
||||||
io:format(standard_error, "~p", [Profile]),
|
|
||||||
lists:foldl(fun(App, Acc) -> [App || is_app(LibDir, App)] ++ Acc end, [], Apps).
|
lists:foldl(fun(App, Acc) -> [App || is_app(LibDir, App)] ++ Acc end, [], Apps).
|
||||||
|
|
||||||
is_app(_LibDir, "." ++ _) -> false; %% ignore hidden dir
|
is_app(_LibDir, "." ++ _) -> false; %% ignore hidden dir
|
||||||
|
Loading…
Reference in New Issue
Block a user