small code cleanup, bug fix

This commit is contained in:
Harald Hope 2017-05-31 17:04:52 -07:00
parent 7b3b51e97a
commit cc57b5d821

14
inxi
View file

@ -8205,7 +8205,7 @@ get_networking_local_ip_data()
ifIpV6 = ifIpV6 "^" addIpV6
}
}
if (addExtV6 != "" )
if (addExtV6 != "" ){
if ( ipExtV6 == "" ){
ipExtV6 = addExtV6
}
@ -13644,16 +13644,14 @@ 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
for (( j=0; j < ${#a_ipv6_ext[@]}; j++ ))
do
print_ipv6_ext_line ${a_ipv6_ext[j]}
done
fi
((i++))
done