From 722c3f77d67c0eff6807179e6b80e65ed96a2396 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Mon, 6 Jun 2011 21:04:15 +0000 Subject: [PATCH] some fine tuning just in case hdd temp returns say 34.5 --- inxi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inxi b/inxi index 98fb404..b23e679 100755 --- a/inxi +++ b/inxi @@ -3711,7 +3711,7 @@ get_hdd_temp_data() fi # 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 ) - 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 fi fi