Bohan Yang 4 年之前
父节点
当前提交
3c448fa09e
共有 1 个文件被更改,包括 9 次插入3 次删除
  1. 9 3
      debi.sh

+ 9 - 3
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"