mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-05-03 22:17:35 +00:00
ci: snap: define proxy variables
define proxy variables before using them to fix `unbound variable` error fixes #1386 Signed-off-by: Julio Montes <julio.montes@intel.com>
This commit is contained in:
parent
14bb24e4ca
commit
a115338ddd
@ -89,6 +89,8 @@ parts:
|
|||||||
export GOROOT=${SNAPCRAFT_STAGE}
|
export GOROOT=${SNAPCRAFT_STAGE}
|
||||||
export PATH="${GOROOT}/bin:${PATH}"
|
export PATH="${GOROOT}/bin:${PATH}"
|
||||||
|
|
||||||
|
http_proxy=${http_proxy:-""}
|
||||||
|
https_proxy=${https_proxy:-""}
|
||||||
if [ -n "$http_proxy" ]; then
|
if [ -n "$http_proxy" ]; then
|
||||||
echo "Setting proxy $http_proxy"
|
echo "Setting proxy $http_proxy"
|
||||||
sudo -E systemctl set-environment http_proxy=$http_proxy || true
|
sudo -E systemctl set-environment http_proxy=$http_proxy || true
|
||||||
|
Loading…
Reference in New Issue
Block a user