Update 'myip.sh'

This commit is contained in:
2023-05-26 15:56:54 +02:00
parent 3ef42551d6
commit 1b227a5892

View File

@@ -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
done