From 78a2872406bfd406b0161162e1bbf5d67197e399 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Fri, 7 Nov 2008 20:04:28 +0000 Subject: [PATCH] made tolower in awk instead of bash for cpu vendor compare --- inxi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inxi b/inxi index 0b69433..93ac337 100755 --- a/inxi +++ b/inxi @@ -1,7 +1,7 @@ #!/bin/bash ######################################################################## #### Script Name: inxi -#### version: 0.3.30 +#### version: 0.3.31 #### Date: November 7 2008 ######################################################################## #### inxi is a fork of infobash, the original bash sys info script by locsmif @@ -896,7 +896,7 @@ get_cpu_data() /vendor_id/ { gsub(/genuine|authentic/,"",$NF) - cpu[nr, "vendor"] = $NF + cpu[nr, "vendor"] = tolower( $NF ) } END { @@ -1472,7 +1472,7 @@ print_cpu_data() # that's why its count is one more than you'd think from cores/cpus alone # weird hack, probably should be changed - cpu_vendor=$( tr '[A-Z]' '[a-z]' <<< ${a_cpu_working[5]} ) + cpu_vendor=${a_cpu_working[5]} # Strange (and also some expected) behavior encountered. # If print_screen_output() uses $1 as the parameter to output to the screen, # then passing " ${ARR[@]} "