Update 'myip.sh'

This commit is contained in:
2023-05-03 00:55:59 +02:00
parent 4c3ac04dad
commit cb0a1bbaa7

View File

@@ -8,7 +8,7 @@ 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" ]]; then
if [[ $ni != "lo" ]] && [[ ! $ni =~ "veth" ]] && [[ ! $ni =~ "docker_" ]]; then
IP="$(get_ip $ni)"
if [[ ! -z $IP ]]; then
echo -n " #[fg=#${COLOR_ACCENT}]$ni #[fg=white]$IP"