Fix battery showing no info in stdout mode

This commit is contained in:
Dylan 2016-02-06 01:04:41 +11:00
parent 8e6a548f63
commit a69b86a22a

8
fetch
View file

@ -1857,7 +1857,11 @@ prin () {
;;
esac
printf "%b%s\n" "${padding}${string}${clear}"
# Print the info
printf "%b%s" "${padding}${string}${clear}"
# If stdout mode is off, print a newline too.
[ "$stdout" == "off" ] && printf "\n"
}
# }}}
@ -2196,7 +2200,7 @@ while [ "$1" ]; do
eval output="\$${func}"
# Print the output
printf "%s" "$output"
printf "%s" "${output}"
;;
esac
done