Skip to content
Permalink
Browse files

xbps-src/chroot.sh: don't set empty PROXY environment variables

  • Loading branch information...
Duncaen committed Nov 8, 2019
1 parent fb3947b commit 2a59e976c18a796873614adaefe73689635b4fc9
Showing with 6 additions and 3 deletions.
  1. +6 −3 common/xbps-src/shutils/chroot.sh
@@ -184,9 +184,12 @@ chroot_handler() {
else
env -i -- PATH="/usr/bin:$PATH" SHELL=/bin/sh \
HOME=/tmp IN_CHROOT=1 LC_COLLATE=C LANG=en_US.UTF-8 \
HTTP_PROXY=${HTTP_PROXY} HTTPS_PROXY=${HTTPS_PROXY} \
FTP_PROXY=${FTP_PROXY} SOCKS_PROXY=${SOCKS_PROXY} NO_PROXY=${NO_PROXY} \
HTTP_PROXY_AUTH=${HTTP_PROXY_AUTH} \
${HTTP_PROXY:+HTTP_PROXY="${HTTP_PROXY}"} \
${HTTPS_PROXY:+HTTPS_PROXY="${HTTPS_PROXY}"} \
${FTP_PROXY:+FTP_PROXY="${FTP_PROXY}"} \
${SOCKS_PROXY:+SOCKS_PROXY="${SOCKS_PROXY}"} \
${NO_PROXY:+NO_PROXY="${NO_PROXY}"} \
${HTTP_PROXY_AUTH:+HTTP_PROXY_AUTH="${HTTP_PROXY_AUTH}"} \
SOURCE_DATE_EPOCH="$SOURCE_DATE_EPOCH" \
XBPS_ALLOW_CHROOT_BREAKOUT="$XBPS_ALLOW_CHROOT_BREAKOUT" \
$XBPS_COMMONDIR/chroot-style/${XBPS_CHROOT_CMD:=uunshare}.sh \

0 comments on commit 2a59e97

Please sign in to comment.
You can’t perform that action at this time.