diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-02-24 09:51:56 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-02-24 09:52:52 +0000 |
commit | 479380de865076ea130986229e8a570fe9af327f (patch) | |
tree | 09d8b73292d4b3b9af1a230715c382f653b764f1 /setup-proxy.in | |
parent | 69ff54f4f8e5a75fe21e987d8b95e0804d8d6fe6 (diff) | |
download | alpine-conf-479380de865076ea130986229e8a570fe9af327f.zip |
setup-proxy: minor cleanups
Diffstat (limited to 'setup-proxy.in')
-rw-r--r-- | setup-proxy.in | 5 |
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" |