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
|
||||
true ->
|
||||
rebar_utils:expand_env_variable(DefaultValue,
|
||||
Key, VarValue);
|
||||
Key,
|
||||
VarValue);
|
||||
false -> VarValue
|
||||
end
|
||||
end,
|
||||
|
@ -305,7 +306,8 @@ expand_vars(Key, Value, Vars) ->
|
|||
Key ->
|
||||
AValue;
|
||||
_ ->
|
||||
rebar_utils:expand_env_variable(AValue, Key, Value)
|
||||
rebar_utils:expand_env_variable(AValue,
|
||||
Key, Value)
|
||||
end,
|
||||
[{AKey, NewValue} | Acc]
|
||||
end,
|
||||
|
|
|
@ -86,7 +86,8 @@ wordsize() ->
|
|||
%% Val = string() | false
|
||||
%%
|
||||
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],
|
||||
Options = [expand_sh_flag(V)
|
||||
|
@ -122,8 +123,7 @@ patch_on_windows(Cmd, Env) ->
|
|||
_ ->
|
||||
lists:foldl(fun({Key, Value}, Acc) ->
|
||||
expand_env_variable(Acc, Key, Value)
|
||||
end,
|
||||
Cmd, Env)
|
||||
end, Cmd, Env)
|
||||
end.
|
||||
|
||||
find_files(Dir, Regex) ->
|
||||
|
|
Loading…
Reference in a new issue