diff --git a/client/common.sh b/client/common.sh index 5aacb2e69548d29461524bdd894957f4dac3f83c..0d4700dd3d85a37ef2466408fb3e356f88eb0ccd 100644 --- a/client/common.sh +++ b/client/common.sh @@ -57,6 +57,7 @@ function tryWget(){ PROXY="http://${phost}:${pport}" fi + PROXYPASSWD="--proxy-password" if which wget &> /dev/null; then WGETBIN="$(which wget)" WGETVERSION="$(${WGETBIN} --version | head -n1 | cut -d' ' -f3)" @@ -67,8 +68,6 @@ function tryWget(){ if test ${WGETVER1} -lt 1 -o ${WGETVER1} -eq 1 -a ${WGETVER2} -lt 10 then PROXYPASSWD="--proxy-passwd" - else - PROXYPASSWD="--proxy-password" fi else WGETBIN="${PREFIX}/bin/wget"