mirror of
https://github.com/bohanyang/debi.git
synced 2026-09-27 06:26:15 +00:00
Fix
This commit is contained in:
@@ -96,13 +96,19 @@ set_mirror_proxy() {
|
|||||||
|
|
||||||
case $mirror_protocol in
|
case $mirror_protocol in
|
||||||
http)
|
http)
|
||||||
if [ -n ${http_proxy+1s} ]; then mirror_proxy="$http_proxy"; fi
|
if [ -n ${http_proxy+1s} ]; then
|
||||||
|
mirror_proxy="$http_proxy"
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
https)
|
https)
|
||||||
if [ -n ${https_proxy+1s} ]; then mirror_proxy="$https_proxy"; fi
|
if [ -n ${https_proxy+1s} ]; then
|
||||||
|
mirror_proxy="$https_proxy"
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
ftp)
|
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"
|
err "Unsupported protocol: $mirror_protocol"
|
||||||
|
|||||||
Reference in New Issue
Block a user