From 3c448fa09e24b6f5f02e9f1bcca5d7f48ddf51ea Mon Sep 17 00:00:00 2001 From: Bohan Yang Date: Thu, 23 Sep 2021 20:54:28 +0800 Subject: [PATCH] Fix --- debi.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/debi.sh b/debi.sh index f1f56ff..e4cf8e1 100755 --- a/debi.sh +++ b/debi.sh @@ -96,13 +96,19 @@ set_mirror_proxy() { case $mirror_protocol in http) - if [ -n ${http_proxy+1s} ]; then mirror_proxy="$http_proxy"; fi + if [ -n ${http_proxy+1s} ]; then + mirror_proxy="$http_proxy" + fi ;; https) - if [ -n ${https_proxy+1s} ]; then mirror_proxy="$https_proxy"; fi + if [ -n ${https_proxy+1s} ]; then + mirror_proxy="$https_proxy" + fi ;; ftp) - if [ -n ${ftp_proxy+1s} ]; then mirror_proxy="$ftp_proxy"; fi + if [ -n ${ftp_proxy+1s} ]; then + mirror_proxy="$ftp_proxy" + fi ;; *) err "Unsupported protocol: $mirror_protocol"