Commit 354e9990 authored by Ansgar Burchardt's avatar Ansgar Burchardt
Browse files

only set one group of proxy variables

parent 2fe2f270
...@@ -13,7 +13,7 @@ docker-build() { ...@@ -13,7 +13,7 @@ docker-build() {
} }
docker_opts=() docker_opts=()
for var in ftp_proxy FTP_PROXY http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY; do for var in ftp_proxy http_proxy https_proxy no_proxy; do
if [[ -n "${!var:-}" ]]; then if [[ -n "${!var:-}" ]]; then
docker_opts+=(--build-arg="${var}=${!var}") docker_opts+=(--build-arg="${var}=${!var}")
fi fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment