diff --git a/inxi b/inxi index c6eee8b..7380fc0 100755 --- a/inxi +++ b/inxi @@ -1186,7 +1186,7 @@ get_memory_data() get_networking_data() { IFS=$'\n' - A_NETWORK_DATA=( $( echo "$lspci_data" | C1=${C1} C2=${C2} gawk ' + A_NETWORK_DATA=( $( echo "$lspci_data" | gawk ' BEGIN { IGNORECASE=1 } /^[0-9a-f:.]+ (ethernet|network) (controller|bridge)/ || /^[0-9a-f:.]+ [^:]+: .*(ethernet|network).*$/ { nic=gensub(/^[0-9a-f:.]+ [^:]+: (.+)$/,"\\1","g",$0) @@ -1450,8 +1450,8 @@ print_cpu_data() # args: $1 - cpu flag string print_cpu_flags_full() { - local flag='' cpu_flags_full="$1" cpu_flags_1='' cpu_flags_2='' cpu_flags_3='' i=0 - local flag_count=$( wc -w <<< "$" ) flag_data='' + local cpu_flags_full="$1" cpu_flags_1='' cpu_flags_2='' cpu_flags_3='' flag_data='' + local i=0 flag='' for flag in $cpu_flags_full do