iankelling.org
/
git
/
distro-setup
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
minor fixes
[distro-setup]
/
filesystem
/
etc
/
apt
/
detect-http-proxy
diff --git
a/filesystem/etc/apt/detect-http-proxy
b/filesystem/etc/apt/detect-http-proxy
index b8ec1d94ea39b01708b241e80ffb8078cdc08275..a6d1d6fb77fa00b08ca1a7286fa40fcb9e9f4253 100755
(executable)
--- a/
filesystem/etc/apt/detect-http-proxy
+++ b/
filesystem/etc/apt/detect-http-proxy
@@
-21,7
+21,7
@@
if [[ -r $f ]]; then
fi
fi
fi
-if getent hosts $proxy_host && nc -z $proxy_host $proxy_port; then
+if getent hosts $proxy_host && nc -z $proxy_host $proxy_port
&>/dev/null
; then
echo $proxy_url
else
if [[ ! -e $f || -w $f ]]; then