mirror of
https://github.com/smxi/inxi.git
synced 2025-01-20 01:17:48 +00:00
some fine tuning just in case hdd temp returns say 34.5
This commit is contained in:
parent
b8686ef409
commit
722c3f77d6
2
inxi
2
inxi
|
@ -3711,7 +3711,7 @@ get_hdd_temp_data()
|
||||||
fi
|
fi
|
||||||
# this will fail if regular user and no sudo present, but that's fine, it will just return null
|
# this will fail if regular user and no sudo present, but that's fine, it will just return null
|
||||||
hdd_temp=$( eval $sudo_command $HDDTEMP_PATH -nq -u C $1 )
|
hdd_temp=$( eval $sudo_command $HDDTEMP_PATH -nq -u C $1 )
|
||||||
if [[ -n $hdd_temp && -n $( grep -E '^([0-9]+)$' <<< $hdd_temp ) ]];then
|
if [[ -n $hdd_temp && -n $( grep -E '^([0-9\.]+)$' <<< $hdd_temp ) ]];then
|
||||||
echo $hdd_temp
|
echo $hdd_temp
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue