]> arthur.barton.de Git - netdata.git/commitdiff
remove extensive usage of cat
authorpaulfantom <paulfantom@gmail.com>
Wed, 8 Jun 2016 12:01:50 +0000 (14:01 +0200)
committerpaulfantom <paulfantom@gmail.com>
Wed, 8 Jun 2016 12:01:50 +0000 (14:01 +0200)
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"