From 43bafde33fb061c523ff17d3d15046cfcfb5c9f7 Mon Sep 17 00:00:00 2001 From: Himanshu Shekhar Date: Mon, 4 Mar 2019 12:05:12 +0530 Subject: [PATCH] fix blank https proxy value --- shellrc.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shellrc.sh b/shellrc.sh index 6b87288..a7ec5f2 100644 --- a/shellrc.sh +++ b/shellrc.sh @@ -56,8 +56,8 @@ set_proxy() { echo "export NO_PROXY=\"${no_proxy}"\" >> "$SHELLRC" if [ "$USE_HTTP_PROXY_FOR_HTTPS" = "true" ]; then - echo "export https_proxy=\"${http_proxy}/\"" >> "$SHELLRC" - echo "export HTTPS_PROXY=\"${HTTP_PROXY}/\"" >> "$SHELLRC" + echo "export https_proxy=\"${stmt}${http_host}:${http_port}/\"" >> "$SHELLRC" + echo "export HTTPS_PROXY=\"${stmt}${http_host}:${http_port}/\"" >> "$SHELLRC" else echo "export https_proxy=\"https://${stmt}${https_host}:${https_port}/\"" >> "$SHELLRC" echo "export HTTPS_PROXY=\"https://${stmt}${https_host}:${https_port}/\"" >> "$SHELLRC"