Skip to content

Commit 24ce4c3

Browse files
Radon10043jemoreira
authored andcommitted
Prevent unbound variable errors when http_proxy and https_proxy are not set
1 parent e224894 commit 24ce4c3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/buildutils/build_package.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ while getopts ":r:c:" opt; do
5454
done
5555

5656
preserve_envvar=""
57-
if [ -n "$http_proxy" ]; then
57+
if [ -n "${http_proxy:-}" ]; then
5858
preserve_envvar="-e http_proxy=${http_proxy}"
5959
fi
60-
if [ -n "$https_proxy" ]; then
60+
if [ -n "${https_proxy:-}" ]; then
6161
preserve_envvar+=" -e https_proxy=${https_proxy}"
6262
fi
6363

0 commit comments

Comments
 (0)