minor fixes
[distro-setup] / filesystem / etc / apt / detect-http-proxy
index b8ec1d94ea39b01708b241e80ffb8078cdc08275..a6d1d6fb77fa00b08ca1a7286fa40fcb9e9f4253 100755 (executable)
@@ -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