summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2016-03-25 22:44:30 +0100
committerStijn Buys <ingar@osirion.org>2016-03-25 22:44:30 +0100
commit65eecef4edf0e04f3cd3219692b57481b5320e71 (patch)
treec376365d4a1092d164092b4f14223d34ef22f5d1
parentfbb42821e78352a2aaabe1740c92cca01fa11683 (diff)
Corrected a bug while parsing the CPU name.
-rwxr-xr-xsysinfo.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysinfo.sh b/sysinfo.sh
index 0588f06..5c239a5 100755
--- a/sysinfo.sh
+++ b/sysinfo.sh
@@ -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