Commit 479380de authored by Natanael Copa's avatar Natanael Copa

setup-proxy: minor cleanups

parent 69ff54f4
......@@ -13,14 +13,13 @@ fi
echon "name of proxyserver ? (e.g proxy.domain.loc:8080) [$proxyserver] "
default_read proxyserver $proxyserver
echo $proxyserver | grep ":" >/dev/null
if [ "$?" = "1" ] ; then
if echo $proxyserver | grep -q ":"; then
echon "port of proxyserver ? [8080] "
default_read proxyport "8080"
proxyserver=$proxyserver:$proxyport
fi
if [ "$proxyuser" = "" ] ; then
if [ "$proxyuser" = "" ] ; then
needauth="no"
else
needauth="yes"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment