From 87f9950839f8d7e9fd904c7ff21c95fb5aeac726 Mon Sep 17 00:00:00 2001 From: Fred Hebert Date: Sat, 11 Jun 2016 11:52:26 -0400 Subject: Expand os ENV proxy support to bootstrap script --- bootstrap | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bootstrap') diff --git a/bootstrap b/bootstrap index f52779e..323b0a5 100755 --- a/bootstrap +++ b/bootstrap @@ -133,7 +133,11 @@ get_rebar_config() -> end. 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(https_proxy, get_http_vars(https_proxy)), -- cgit v1.1