summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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