]> arthur.barton.de Git - netdata.git/commitdiff
Merge pull request #516 from paulfantom/master
authorCosta Tsaousis <costa@tsaousis.gr>
Wed, 8 Jun 2016 12:05:56 +0000 (15:05 +0300)
committerCosta Tsaousis <costa@tsaousis.gr>
Wed, 8 Jun 2016 12:05:56 +0000 (15:05 +0300)
remove extensive usage of cat

charts.d/sensors.chart.sh

index 6e77317783c2479cbec05e90f43ee64c4ca6c237..06a35af2d961530516e539d09a4db7db14e745db 100755 (executable)
@@ -213,7 +213,7 @@ sensors_create() {
                                fi
 
                                echo "DIMENSION $fid '$labelname' $algorithm $multiplier $divisor"
-                               echo >>$TMP_DIR/sensors.sh "printf \"SET $fid = \"; cat $file "
+                               echo >>$TMP_DIR/sensors.sh "echo \"SET $fid = \"\$(< $file )"
                        done
 
                        echo >>$TMP_DIR/sensors.sh "echo END"