mirror of
https://github.com/KittyKatt/screenFetch.git
synced 2026-04-24 03:00:16 -04:00
Leading space in output screwed it up. Should be fixed.
This commit is contained in:
@@ -692,7 +692,7 @@ detectcpu () {
|
||||
else
|
||||
cpu=$(awk 'BEGIN{FS=":"} /model name/ { gsub(/ +/," ",$2); gsub(/^ /,"",$2); gsub(/\(R\)|\(TM\)|\(tm\)| Processor/,"",$2); print $2; exit }' /proc/cpuinfo | sed 's/ @/\n/' | head -1)
|
||||
if [ -z "$cpu" ]; then
|
||||
cpu=$(awk 'BEGIN{FS=":"} /^cpu/ { gsub(/ +/," ",$2); print $2; exit}' /proc/cpuinfo | sed 's/, altivec supported//')
|
||||
cpu=$(awk 'BEGIN{FS=":"} /^cpu/ { gsub(/ +/," ",$2); print $2; exit}' /proc/cpuinfo | sed 's/, altivec supported//;s/^ //')
|
||||
if [[ $cpu =~ ^(PPC)*9.+ ]]; then
|
||||
model="IBM PowerPC G5"
|
||||
elif [[ $cpu =~ ^74.+ ]]; then
|
||||
|
||||
Reference in New Issue
Block a user