Fix the problem of unable to proxy download
parent
2778c87a03
commit
3a221f7bfd
|
@ -154,6 +154,7 @@ if [[ "$#" -gt '0' ]]; then
|
||||||
esac
|
esac
|
||||||
PROXY="-x $2"
|
PROXY="-x $2"
|
||||||
# Parameters available through a proxy server
|
# Parameters available through a proxy server
|
||||||
|
if [[ "$#" -gt '2' ]]; then
|
||||||
case "$3" in
|
case "$3" in
|
||||||
'--version')
|
'--version')
|
||||||
if [[ "$#" -gt '4' ]] || [[ -z "$4" ]]; then
|
if [[ "$#" -gt '4' ]] || [[ -z "$4" ]]; then
|
||||||
|
@ -181,6 +182,7 @@ if [[ "$#" -gt '0' ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "$0: unknown option -- -"
|
echo "$0: unknown option -- -"
|
||||||
|
|
Loading…
Reference in New Issue