diff options
Diffstat (limited to 'bin/hwmon')
-rwxr-xr-x | bin/hwmon | 18 |
1 files changed, 10 insertions, 8 deletions
@@ -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 |