Skip to content
This repository was archived by the owner on Dec 16, 2024. It is now read-only.

Commit 1ce455d

Browse files
committed
Fix vcad_build.sh script error when not using proxy
Signed-off-by: haojia2x <haox.jiang@intel.com>
1 parent 32d09ea commit 1ce455d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

VCAC-A/Intel_Media_Analytics_Node/scripts/vcad_build.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -654,13 +654,14 @@ install_vcad() {
654654
fi
655655
fi
656656
#set git proxy
657-
if [ ! $HTTP_PROXY ] ; then
657+
if [ -z "${HTTP_PROXY-}" ] ; then
658658
git_proxy_flag=0
659659
else
660660
git_proxy_flag=1
661-
git_http_proxy=$HTTP_PROXY
662-
git_https_proxy=$HTTPS_PROXY
663661
fi
662+
git_https_proxy="${HTTPS_PROXY-}"
663+
git_http_proxy="${HTTP_PROXY-}"
664+
664665
# generate install script
665666
_cd ${BUILD_DIR}
666667
cat > install_package_in_image.sh <<EOF

0 commit comments

Comments
 (0)