From 932de48e99e2bdb0144f719bba93bb98c401f7f3 Mon Sep 17 00:00:00 2001 From: Robert Peteuil Date: Mon, 15 Jan 2024 13:00:43 -0700 Subject: [PATCH] bug: make lscpu conditional --- sysis | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sysis b/sysis index 9a16ae5..b22826d 100755 --- a/sysis +++ b/sysis @@ -10,8 +10,8 @@ scriptname="sysis" -scriptbuildnum="3.8.1" -scriptbuilddate="2024-01-03" +scriptbuildnum="3.8.2" +scriptbuilddate="2024-01-15" ############################################################ ### VARS INITS @@ -282,7 +282,7 @@ setLinuxCommon() { else # plan c - use uname OSfullname="${SYSkernal}" fi - if [ -e "/sys/devices/system/cpu/possible" ]; then + if [[ -e "/sys/devices/system/cpu/possible" ]] && [[ $(lscpu -h 2> /dev/null) ]]; then if lscpu | grep -q -m1 'max MHz'; then CPUspeed=$(lscpu | grep -m1 'max MHz') # exists on adj. proc else