diff --git a/inxi b/inxi index 857372e..595794b 100755 --- a/inxi +++ b/inxi @@ -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