mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-05-17 20:01:30 +00:00
respect DEBOOTSTRAP_PROXY
if set in environment or config file DEBOOTSTRAP_PROXY takes precedence over the larger scoped environment variable 'http_proxy'.
This commit is contained in:
parent
09b49cda66
commit
56220bdd23
@ -459,6 +459,8 @@ if [ -n "$DEBOOTSTRAP_EXCLUDE" ] ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# if http_proxy is set in the environment (even empty) set 'proxy' to it
|
# if http_proxy is set in the environment (even empty) set 'proxy' to it
|
||||||
|
[ "$proxy" = "_unset_" -a "${DEBOOTSTRAP_PROXY-xx}" = "xx" ] &&
|
||||||
|
proxy=${DEBOOTSTRAP_PROXY}
|
||||||
[ "$proxy" = "_unset_" -a "${http_proxy-xx}" = "xx" ] && proxy=${http_proxy}
|
[ "$proxy" = "_unset_" -a "${http_proxy-xx}" = "xx" ] && proxy=${http_proxy}
|
||||||
if [ "$proxy" = "_unset_" ]; then
|
if [ "$proxy" = "_unset_" ]; then
|
||||||
_out=$(apt-config shell x Acquire::HTTP::Proxy) &&
|
_out=$(apt-config shell x Acquire::HTTP::Proxy) &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user