From 1b227a5892262859c804d89caec78b7a31e2a004 Mon Sep 17 00:00:00 2001 From: Christopher Beckmann Date: Fri, 26 May 2023 15:56:54 +0200 Subject: [PATCH] Update 'myip.sh' --- myip.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/myip.sh b/myip.sh index a1ca6db..d55504f 100644 --- a/myip.sh +++ b/myip.sh @@ -8,10 +8,10 @@ INTERFACES=$( ip a show | grep -E "^[0-9]{0,3}:" | cut -d ' ' -f 2 | cut -d : -f for ni in $INTERFACES do - if [[ $ni != "lo" ]] && [[ ! $ni =~ "veth" ]] && [[ ! $ni =~ "docker_" ]]; then + if [[ $ni != "lo" ]] && [[ ! $ni =~ "veth" ]] && [[ ! $ni =~ "br-" ]] && [[ ! $ni =~ "docker_" ]]; then IP="$(get_ip $ni)" if [[ ! -z $IP ]]; then echo -n " #[fg=#${COLOR_ACCENT}]$ni #[fg=white]$IP " fi fi -done \ No newline at end of file +done