From 4f802cc99363a33466a8cfb070cdb043ecec8c72 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 623be060ce..4ad8ef58a3 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