diff options
-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 |