From bb177383ffa19e51d98c3d2dfac19fa8c80def3a Mon Sep 17 00:00:00 2001 From: Eugene Rakhmatulin Date: Tue, 31 Mar 2026 12:46:15 -0700 Subject: [PATCH] Bugfix in autodiscovery dedup --- autodiscover.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autodiscover.sh b/autodiscover.sh index 16c056c..5f04a91 100644 --- a/autodiscover.sh +++ b/autodiscover.sh @@ -346,7 +346,7 @@ detect_copy_hosts() { local host_ip host_ip=$(ssh -o ConnectTimeout=3 -o StrictHostKeyChecking=no -o BatchMode=yes "$ip" \ "ip -o -f inet addr show $ETH_IF 2>/dev/null | awk '{print \$4}' | head -n1 | cut -d/ -f1" \ - 2>/dev/null) + /dev/null) if [[ -n "$host_ip" && -n "${_SEEN_HOST[$host_ip]}" ]]; then echo " Skipping $ip (same host as ${_SEEN_HOST[$host_ip]}, ETH_IF: $host_ip)" continue