Parcourir la source

Merge pull request #1230 from ferd/support-env-proxy-vars

Expand os ENV proxy support to bootstrap script
pull/1231/head
Fred Hebert il y a 9 ans
committed by GitHub
Parent
révision
e337793e9f
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  1. +5
    -1
      bootstrap

+ 5
- 1
bootstrap Voir le fichier

@ -133,7 +133,11 @@ get_rebar_config() ->
end. end.
get_http_vars(Scheme) -> get_http_vars(Scheme) ->
proplists:get_value(Scheme, get_rebar_config(), []).
OS = case os:getenv(atom_to_list(Scheme)) of
Str when is_list(Str) -> Str;
_ -> []
end,
proplists:get_value(Scheme, get_rebar_config(), OS).
set_httpc_options() -> set_httpc_options() ->
set_httpc_options(https_proxy, get_http_vars(https_proxy)), set_httpc_options(https_proxy, get_http_vars(https_proxy)),

Chargement…
Annuler
Enregistrer