Skip to content
Snippets Groups Projects
Commit 258b7083 authored by Erik Alexandre Pucci's avatar Erik Alexandre Pucci
Browse files

client/common.sh: Add $PROXYPASSWORD default value


Without this, an error occurs while using the package wget binary.

Signed-off-by: default avatarErik Alexandre Pucci <eap08@c3sl.ufpr.br>
Acked-by: default avatarAryane Ast dos Santos <aras10@c3sl.ufpr.br>
parent 16f895a7
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment