mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 03:00:17 +00:00
Limit line length
This commit is contained in:
parent
7ec9b48d50
commit
8fb385f312
2 changed files with 7 additions and 5 deletions
|
@ -248,7 +248,8 @@ apply_defaults(Vars, Defaults) ->
|
||||||
case is_expandable(DefaultValue) of
|
case is_expandable(DefaultValue) of
|
||||||
true ->
|
true ->
|
||||||
rebar_utils:expand_env_variable(DefaultValue,
|
rebar_utils:expand_env_variable(DefaultValue,
|
||||||
Key, VarValue);
|
Key,
|
||||||
|
VarValue);
|
||||||
false -> VarValue
|
false -> VarValue
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
@ -305,7 +306,8 @@ expand_vars(Key, Value, Vars) ->
|
||||||
Key ->
|
Key ->
|
||||||
AValue;
|
AValue;
|
||||||
_ ->
|
_ ->
|
||||||
rebar_utils:expand_env_variable(AValue, Key, Value)
|
rebar_utils:expand_env_variable(AValue,
|
||||||
|
Key, Value)
|
||||||
end,
|
end,
|
||||||
[{AKey, NewValue} | Acc]
|
[{AKey, NewValue} | Acc]
|
||||||
end,
|
end,
|
||||||
|
|
|
@ -86,7 +86,8 @@ wordsize() ->
|
||||||
%% Val = string() | false
|
%% Val = string() | false
|
||||||
%%
|
%%
|
||||||
sh(Command0, Options0) ->
|
sh(Command0, Options0) ->
|
||||||
?INFO("sh info:\n\tcwd: ~p\n\tcmd: ~s\n\topts: ~p\n", [get_cwd(), Command0, Options0]),
|
?INFO("sh info:\n\tcwd: ~p\n\tcmd: ~s\n\topts: ~p\n",
|
||||||
|
[get_cwd(), Command0, Options0]),
|
||||||
|
|
||||||
DefaultOptions = [use_stdout, abort_on_error],
|
DefaultOptions = [use_stdout, abort_on_error],
|
||||||
Options = [expand_sh_flag(V)
|
Options = [expand_sh_flag(V)
|
||||||
|
@ -122,8 +123,7 @@ patch_on_windows(Cmd, Env) ->
|
||||||
_ ->
|
_ ->
|
||||||
lists:foldl(fun({Key, Value}, Acc) ->
|
lists:foldl(fun({Key, Value}, Acc) ->
|
||||||
expand_env_variable(Acc, Key, Value)
|
expand_env_variable(Acc, Key, Value)
|
||||||
end,
|
end, Cmd, Env)
|
||||||
Cmd, Env)
|
|
||||||
end.
|
end.
|
||||||
|
|
||||||
find_files(Dir, Regex) ->
|
find_files(Dir, Regex) ->
|
||||||
|
|
Loading…
Reference in a new issue