summaryrefslogtreecommitdiffstats
path: root/bin/hwmon
diff options
context:
space:
mode:
Diffstat (limited to 'bin/hwmon')
-rwxr-xr-xbin/hwmon18
1 files changed, 10 insertions, 8 deletions
diff --git a/bin/hwmon b/bin/hwmon
index 099ca2b..5fb2047 100755
--- a/bin/hwmon
+++ b/bin/hwmon
@@ -170,15 +170,17 @@ print_sensor()
printf ' '
i=$((${i} + 1))
done
- printf '%s:' "${label}"
- i=${#label}
- while [ ${i} -lt ${len} ]; do
- printf ' '
- i=$((${i} + 1))
- done
+ case "${label}" in ?*)
+ printf '%s: ' "${label}"
+ i=${#label}
+ while [ ${i} -lt ${len} ]; do
+ printf ' '
+ i=$((${i} + 1))
+ done
+ esac
case "${cr}" in
- 1) printf ' %s\r' "${value}";;
- 0) printf ' %s\n' "${value}";;
+ 1) printf '%s\r' "${value}";;
+ 0) printf '%s\n' "${value}";;
esac
return 0