added newlines to sensors output to make sure sensors always work

This commit is contained in:
inxi-svn 2011-06-25 04:08:13 +00:00
parent d1a47c3168
commit 51a4fe9432

11
inxi
View file

@ -3,7 +3,7 @@
#### Script Name: inxi
#### version: 1.7.12
#### Date: June 24 2011
#### Patch Number: 01
#### Patch Number: 02
########################################################################
#### SPECIAL THANKS
########################################################################
@ -5699,10 +5699,15 @@ get_sensors_data()
get_sensors_output()
{
local sensors_path=$( type -p sensors )
local sensors_path=$( type -p sensors ) sensors_data=''
if [[ -n $sensors_path ]];then
$sensors_path 2>/dev/null
sensors_data="$( $sensors_path 2>/dev/null )"
if [[ -n "$sensors_data" ]];then
sensors_data="$sensors_data\n\n" # make sure the file ends in newlines
fi
fi
echo -e "$sensors_data"
}
get_unmounted_partition_data()