From a115338ddd89bdafc611725d88adb01ba54578f1 Mon Sep 17 00:00:00 2001 From: Julio Montes Date: Tue, 9 Feb 2021 12:44:17 -0600 Subject: [PATCH] ci: snap: define proxy variables define proxy variables before using them to fix `unbound variable` error fixes #1386 Signed-off-by: Julio Montes --- snap/snapcraft.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 1286441c4e..3ee86d820c 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -89,6 +89,8 @@ parts: export GOROOT=${SNAPCRAFT_STAGE} export PATH="${GOROOT}/bin:${PATH}" + http_proxy=${http_proxy:-""} + https_proxy=${https_proxy:-""} if [ -n "$http_proxy" ]; then echo "Setting proxy $http_proxy" sudo -E systemctl set-environment http_proxy=$http_proxy || true