mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-20 16:15:59 +01:00
Handle error case from code:lib_dir in ResolveDepPath in rebar.config.script
This commit is contained in:
parent
88e6f1c6aa
commit
d0bfcbbfd8
@ -233,9 +233,10 @@ ResolveDepPath = case {SystemDeps, IsRebar3} of
|
||||
{true, _} ->
|
||||
fun("deps/" ++ Rest) ->
|
||||
Slash = string:str(Rest, "/"),
|
||||
code:lib_dir(
|
||||
string:sub_string(Rest, 1, Slash -1)) ++
|
||||
string:sub_string(Rest, Slash);
|
||||
case code:lib_dir(string:sub_string(Rest, 1, Slash -1)) of
|
||||
{error, _} -> Rest;
|
||||
V -> V ++ string:sub_string(Rest, Slash)
|
||||
end;
|
||||
(Path) ->
|
||||
Path
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user