mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +00:00
bug fix for nested {}... in cpu section
This commit is contained in:
parent
fce18b8fa4
commit
07605806d7
7
inxi
7
inxi
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
########################################################################
|
||||
#### Script Name: inxi
|
||||
#### version: 0.1.32
|
||||
#### version: 0.1.33
|
||||
#### Date: October 28 2008
|
||||
########################################################################
|
||||
#### inxi is a fork of infobash, the original bash sys info script by locsmif
|
||||
|
@ -692,7 +692,7 @@ get_distro_data()
|
|||
|
||||
get_cpu_data()
|
||||
{
|
||||
local i='' j=''
|
||||
local i='' j='' cpu_array_nu=''
|
||||
OSKERN=$( uname -a | gawk '{print $1,$3,$(NF-1)}' )
|
||||
|
||||
IFS=$'\n'
|
||||
|
@ -789,7 +789,8 @@ get_cpu_data()
|
|||
IFS="$OIFS"
|
||||
# For the short line
|
||||
CPUMODEL="${CPU2}${CPU2+ }${CPUTMP[0]}" # clocked at [${CPU[${#CPU[@]}-1]}]" # old CPU2
|
||||
CPUCLOCK="$CPU[${#CPU[@]}-1]" # old CPU3
|
||||
cpu_array_nu=$(( ${#CPU[@]} - 1 ))
|
||||
CPUCLOCK="${CPU[$cpu_array_nu]}" # old CPU3
|
||||
CPUFLAGS="${CPUTMP[3]}" # old CPU4
|
||||
# nx = AMD stack protection extensions
|
||||
# lm = Intel 64bit extensions
|
||||
|
|
Loading…
Reference in a new issue