mirror of
https://github.com/correl/rebar.git
synced 2024-11-23 19:19:54 +00:00
Deal properly with env vars that have multiple = in the value
This commit is contained in:
parent
1f6d861aba
commit
6714d47efb
1 changed files with 2 additions and 2 deletions
|
@ -247,7 +247,7 @@ expand_vars_loop(Vars0, Count) ->
|
|||
case orddict:from_list(Vars) of
|
||||
Vars0 ->
|
||||
Vars0;
|
||||
Vars ->
|
||||
_ ->
|
||||
expand_vars_loop(Vars, Count-1)
|
||||
end.
|
||||
|
||||
|
@ -297,7 +297,7 @@ erts_dir() ->
|
|||
lists:concat([code:root_dir(), "/erts-", erlang:system_info(version)]).
|
||||
|
||||
os_env() ->
|
||||
[list_to_tuple(re:split(S, "=", [{return, list}])) || S <- os:getenv()].
|
||||
[list_to_tuple(re:split(S, "=", [{return, list}, {parts, 2}])) || S <- os:getenv()].
|
||||
|
||||
default_env() ->
|
||||
[{"CC", "gcc"},
|
||||
|
|
Loading…
Reference in a new issue