From 93a7e248d9c3a46fdacab76139883e95ee94ad1a Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Wed, 20 Jul 2011 21:25:12 +0000 Subject: [PATCH] fixed a small glitch with sensors data, it needs a character string after the newlines for the newline to work properly due to how bash deals with null lines after end of content. --- inxi | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/inxi b/inxi index 98afead..5feed6a 100755 --- a/inxi +++ b/inxi @@ -1,8 +1,8 @@ #!/bin/bash ######################################################################## #### Script Name: inxi -#### version: 1.7.17 -#### Date: July 19 2011 +#### version: 1.7.18 +#### Date: July 20 2011 #### Patch Number: 00 ######################################################################## #### SPECIAL THANKS @@ -5806,7 +5806,9 @@ get_sensors_output() if [[ -n $sensors_path ]];then 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 + # make sure the file ends in newlines then characters, the newlines are lost in the echo unless + # the data ends in some characters + sensors_data="$sensors_data\n\n###" fi fi echo -e "$sensors_data"