mirror of
https://github.com/smxi/inxi.git
synced 2025-01-19 08:57:57 +00:00
small code cleanup, bug fix
This commit is contained in:
parent
7b3b51e97a
commit
cc57b5d821
6
inxi
6
inxi
|
@ -8205,7 +8205,7 @@ get_networking_local_ip_data()
|
|||
ifIpV6 = ifIpV6 "^" addIpV6
|
||||
}
|
||||
}
|
||||
if (addExtV6 != "" )
|
||||
if (addExtV6 != "" ){
|
||||
if ( ipExtV6 == "" ){
|
||||
ipExtV6 = addExtV6
|
||||
}
|
||||
|
@ -13644,17 +13644,15 @@ print_networking_ip_data()
|
|||
full_string=$( create_print_line " " "$if_string" )
|
||||
print_screen_output "$full_string"
|
||||
if_string=''
|
||||
if [[ ${a_interfaces_working[4]} != '' ]];then
|
||||
if [[ ${a_interfaces_working[4]} != '' ]] && [[ $B_EXTRA_DATA == 'true' ]];then
|
||||
IFS="^"
|
||||
a_ipv6_ext=(${a_interfaces_working[4]})
|
||||
IFS="$ORIGINAL_IFS"
|
||||
if [[ $B_EXTRA_DATA == 'true' ]];then
|
||||
for (( j=0; j < ${#a_ipv6_ext[@]}; j++ ))
|
||||
do
|
||||
print_ipv6_ext_line ${a_ipv6_ext[j]}
|
||||
done
|
||||
fi
|
||||
fi
|
||||
((i++))
|
||||
done
|
||||
|
||||
|
|
Loading…
Reference in a new issue