diff options
author | Stijn Buys <ingar@osirion.org> | 2016-03-25 22:44:30 +0100 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2016-03-25 22:44:30 +0100 |
commit | 65eecef4edf0e04f3cd3219692b57481b5320e71 (patch) | |
tree | c376365d4a1092d164092b4f14223d34ef22f5d1 | |
parent | fbb42821e78352a2aaabe1740c92cca01fa11683 (diff) |
Corrected a bug while parsing the CPU name.
-rwxr-xr-x | sysinfo.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -19,7 +19,7 @@ swap_used=`echo ${swap_total} ${swap_free} | awk '{printf "%d",$1-$2;}'` #--- [ CPU ] -------------------------- cpu=`cat /proc/cpuinfo | grep "model name" | head -n 1 | sed 's/^.*: //'` -if [ x"${cpu}" == "x" ]; then +if [ -z "${cpu}" ]; then # fallback cpu=`uname -p` fi |