mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 11:06:20 +00:00
Fix crash introduced in 4414f65
via pull/245
This commit is contained in:
parent
0c27fd4f7f
commit
49f3cc4108
1 changed files with 2 additions and 2 deletions
|
@ -64,8 +64,8 @@
|
||||||
?CONSOLE("Available templates:\n", []),
|
?CONSOLE("Available templates:\n", []),
|
||||||
_ = [begin
|
_ = [begin
|
||||||
BaseName = filename:basename(F, ".template"),
|
BaseName = filename:basename(F, ".template"),
|
||||||
{ok, Template} = file:consult(F),
|
TemplateTerms = consult(load_file(Type, F)),
|
||||||
{_, VarList} = lists:keyfind(variables, 1, Template),
|
{_, VarList} = lists:keyfind(variables, 1, TemplateTerms),
|
||||||
Vars = lists:foldl(fun({V,_}, Acc) ->
|
Vars = lists:foldl(fun({V,_}, Acc) ->
|
||||||
[atom_to_list(V) | Acc]
|
[atom_to_list(V) | Acc]
|
||||||
end, [], VarList),
|
end, [], VarList),
|
||||||
|
|
Loading…
Reference in a new issue