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
14
inxi
14
inxi
|
@ -8205,7 +8205,7 @@ get_networking_local_ip_data()
|
||||||
ifIpV6 = ifIpV6 "^" addIpV6
|
ifIpV6 = ifIpV6 "^" addIpV6
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (addExtV6 != "" )
|
if (addExtV6 != "" ){
|
||||||
if ( ipExtV6 == "" ){
|
if ( ipExtV6 == "" ){
|
||||||
ipExtV6 = addExtV6
|
ipExtV6 = addExtV6
|
||||||
}
|
}
|
||||||
|
@ -13644,16 +13644,14 @@ print_networking_ip_data()
|
||||||
full_string=$( create_print_line " " "$if_string" )
|
full_string=$( create_print_line " " "$if_string" )
|
||||||
print_screen_output "$full_string"
|
print_screen_output "$full_string"
|
||||||
if_string=''
|
if_string=''
|
||||||
if [[ ${a_interfaces_working[4]} != '' ]];then
|
if [[ ${a_interfaces_working[4]} != '' ]] && [[ $B_EXTRA_DATA == 'true' ]];then
|
||||||
IFS="^"
|
IFS="^"
|
||||||
a_ipv6_ext=(${a_interfaces_working[4]})
|
a_ipv6_ext=(${a_interfaces_working[4]})
|
||||||
IFS="$ORIGINAL_IFS"
|
IFS="$ORIGINAL_IFS"
|
||||||
if [[ $B_EXTRA_DATA == 'true' ]];then
|
for (( j=0; j < ${#a_ipv6_ext[@]}; j++ ))
|
||||||
for (( j=0; j < ${#a_ipv6_ext[@]}; j++ ))
|
do
|
||||||
do
|
print_ipv6_ext_line ${a_ipv6_ext[j]}
|
||||||
print_ipv6_ext_line ${a_ipv6_ext[j]}
|
done
|
||||||
done
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
((i++))
|
((i++))
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue