Skip to content

Commit 2361271

Browse files
authored
Merge pull request #308 from mekanix/feature/update-proxy
Check if proxy should be set
2 parents dac3d72 + 6cd9c7e commit 2361271

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/update-base.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ if [ "${BACKEND}" = "cbsd" ]; then
1515
elif [ "${BACKEND}" = "base" ]; then
1616
JAIL="${1}"
1717
export PAGER=cat
18-
export HTTP_PROXY="${PKG_PROXY}"
18+
if [ "${PKG_PROXY}" != "no" ]; then
19+
export HTTP_PROXY="${PKG_PROXY}"
20+
fi
1921
if [ -z "${JAIL}" ]; then
2022
cd "${BASE_WORKDIR}"
2123
jls -N | egrep -v ' *JID' | awk '{print $1}' | while read jail_name; do

0 commit comments

Comments
 (0)