diff --git a/inxi b/inxi index d9324c4..9248033 100755 --- a/inxi +++ b/inxi @@ -1267,7 +1267,7 @@ get_uptime() print_cpu_data() { local cpu_data='' i='' a_cpu_working='' cpu_clock_speed='' cpu_multi_clock_data='' - + ##print_screen_output "A_CPU_DATA[0]=\"${A_CPU_DATA[0]}\"" IFS="," a_cpu_working=(${A_CPU_DATA[0]}) @@ -1297,7 +1297,7 @@ print_cpu_data() cpu_data="$cpu_data${C2} ${a_cpu_working[2]} cache${C2} ${C1}flags${C2} ($CPU_FLAGS)${CN}" fi - if [ "$VERBOSITY_LEVEL" -ge 5 -a ${#A_CPU_DATA[@]} -gt 2 ] + if [ "$VERBOSITY_LEVEL" -ge 5 -a "${#A_CPU_DATA[@]}" -gt 2 ] then cpu_clock_speed='' # null < verbosity level 5 else @@ -1306,8 +1306,8 @@ print_cpu_data() cpu_data="$cpu_data $cpu_clock_speed" print_screen_output "$cpu_data" - - if [ "$VERBOSITY_LEVEL" -ge 5 -a ${#A_CPU_DATA[@]} -gt 2 ] + + if [ "$VERBOSITY_LEVEL" -ge 5 -a "${#A_CPU_DATA[@]}" -gt 2 ] then for (( i=0; i < ${#A_CPU_DATA[@]}-1; i++ )) do