diff options
author | paulfantom <paulfantom@gmail.com> | 2016-06-08 14:01:50 +0200 |
---|---|---|
committer | paulfantom <paulfantom@gmail.com> | 2016-06-08 14:01:50 +0200 |
commit | f0223b3603d09df272c971bac95668398f85c446 (patch) | |
tree | 9097ee74582fbe1d5bd779e135a7422aa8f090e5 /charts.d/sensors.chart.sh | |
parent | 2cc5f7e36d94a78cbec610a3add75d1ed6864c97 (diff) |
remove extensive usage of cat
Diffstat (limited to 'charts.d/sensors.chart.sh')
-rwxr-xr-x | charts.d/sensors.chart.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/charts.d/sensors.chart.sh b/charts.d/sensors.chart.sh index 6e77317783..06a35af2d9 100755 --- a/charts.d/sensors.chart.sh +++ b/charts.d/sensors.chart.sh @@ -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" |