mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 11:06:20 +00:00
Use same variable names as file:make_link/2
This commit is contained in:
parent
285ca0f6be
commit
74ca540939
1 changed files with 3 additions and 3 deletions
|
@ -380,15 +380,15 @@ execute_template([{chmod, Mod, File} | Rest], TemplateType, TemplateName,
|
||||||
?ABORT("Failed while processing template instruction "
|
?ABORT("Failed while processing template instruction "
|
||||||
"{cmod, ~b, ~s}: ~p~n", [Mod, File, Reason])
|
"{cmod, ~b, ~s}: ~p~n", [Mod, File, Reason])
|
||||||
end;
|
end;
|
||||||
execute_template([{symlink, Target, LinkName} | Rest], TemplateType, TemplateName,
|
execute_template([{symlink, Existing, New} | Rest], TemplateType, TemplateName,
|
||||||
Context, Force, ExistingFiles) ->
|
Context, Force, ExistingFiles) ->
|
||||||
case file:make_symlink(Target, LinkName) of
|
case file:make_symlink(Existing, New) of
|
||||||
ok ->
|
ok ->
|
||||||
execute_template(Rest, TemplateType, TemplateName,
|
execute_template(Rest, TemplateType, TemplateName,
|
||||||
Context, Force, ExistingFiles);
|
Context, Force, ExistingFiles);
|
||||||
{error, Reason} ->
|
{error, Reason} ->
|
||||||
?ABORT("Failed while processing template instruction "
|
?ABORT("Failed while processing template instruction "
|
||||||
"{symlink, ~s, ~s}: ~p~n", [Target, LinkName, Reason])
|
"{symlink, ~s, ~s}: ~p~n", [Existing, New, Reason])
|
||||||
end;
|
end;
|
||||||
execute_template([{variables, _} | Rest], TemplateType, TemplateName, Context,
|
execute_template([{variables, _} | Rest], TemplateType, TemplateName, Context,
|
||||||
Force, ExistingFiles) ->
|
Force, ExistingFiles) ->
|
||||||
|
|
Loading…
Reference in a new issue