mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
added newlines to sensors output to make sure sensors always work
This commit is contained in:
parent
d1a47c3168
commit
51a4fe9432
11
inxi
11
inxi
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue