Skip to content

Commit

Permalink
fixed build.sh corproate proxy setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr.Snowbird authored and Dr.Snowbird committed Feb 1, 2019
1 parent 590848a commit bfa1468
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,13 @@ function generateProxyArgs() {
PROXY_PARAM="${PROXY_PARAM} --build-arg NO_PROXY=\"${NO_PROXY}\""
fi
if [ "${http_proxy}" != "" ]; then
PROXY_PARAM="${PROXY_PARAM} --build-arg HTTP_PROXY=${http_proxy}"
PROXY_PARAM="${PROXY_PARAM} --build-arg http_proxy=${http_proxy}"
fi
if [ "${https_proxy}" != "" ]; then
PROXY_PARAM="${PROXY_PARAM} --build-arg HTTPS_PROXY=${https_proxy}"
PROXY_PARAM="${PROXY_PARAM} --build-arg https_proxy=${https_proxy}"
fi
if [ "${no_proxy}" != "" ]; then
PROXY_PARAM="${PROXY_PARAM} --build-arg NO_PROXY=\"${no_proxy}\""
PROXY_PARAM="${PROXY_PARAM} --build-arg no_proxy=\"${no_proxy}\""
fi
BUILD_ARGS="${BUILD_ARGS} ${PROXY_PARAM}"
}
Expand Down

0 comments on commit bfa1468

Please sign in to comment.