Update 'myip.sh'
This commit is contained in:
4
myip.sh
4
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
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user