mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 03:00:17 +00:00
Merge pull request #14 from tuncer/fix-list-keysort-call
Fix rebar_erlydtl_compiler:erlydtl_opts/1 and rebar:run/2
This commit is contained in:
commit
38b08252c6
2 changed files with 2 additions and 2 deletions
|
@ -69,7 +69,7 @@ main(Args) ->
|
|||
|
||||
%% Erlang-API entry point
|
||||
run(BaseConfig, Commands) ->
|
||||
application:load(rebar),
|
||||
_ = application:load(rebar),
|
||||
run_aux(BaseConfig, Commands).
|
||||
|
||||
%% ====================================================================
|
||||
|
|
|
@ -133,7 +133,7 @@ erlydtl_opts(Config) ->
|
|||
Tuples = [{K,V} || {K,V} <- Opts],
|
||||
case [L || L <- Opts, is_list(L), not io_lib:printable_list(L)] of
|
||||
[] ->
|
||||
lists:keysort(1, [Tuples]);
|
||||
lists:keysort(1, Tuples);
|
||||
Lists ->
|
||||
lists:map(fun(L) ->
|
||||
lists:keysort(1, lists:foldl(fun({K,T}, Acc) ->
|
||||
|
|
Loading…
Reference in a new issue