summaryrefslogtreecommitdiff
path: root/setup-proxy.in
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-02-24 09:51:56 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-02-24 09:52:52 +0000
commit479380de865076ea130986229e8a570fe9af327f (patch)
tree09d8b73292d4b3b9af1a230715c382f653b764f1 /setup-proxy.in
parent69ff54f4f8e5a75fe21e987d8b95e0804d8d6fe6 (diff)
downloadalpine-conf-479380de865076ea130986229e8a570fe9af327f.zip
setup-proxy: minor cleanups
Diffstat (limited to 'setup-proxy.in')
-rw-r--r--setup-proxy.in5
1 files changed, 2 insertions, 3 deletions
diff --git a/setup-proxy.in b/setup-proxy.in
index 6b0d978..4d62ea0 100644
--- a/setup-proxy.in
+++ b/setup-proxy.in
@@ -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"