X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=filesystem%2Fetc%2Fapt%2Fdetect-http-proxy;h=a6d1d6fb77fa00b08ca1a7286fa40fcb9e9f4253;hb=1178f7e7106ada9eba91184c04533feb28f695f5;hp=b8ec1d94ea39b01708b241e80ffb8078cdc08275;hpb=33baa48d8a0bd6039e753273548b04f612a16b0a;p=distro-setup diff --git a/filesystem/etc/apt/detect-http-proxy b/filesystem/etc/apt/detect-http-proxy index b8ec1d9..a6d1d6f 100755 --- 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