added newline,caused crashes to some users & bash

This commit is contained in:
Hekuran 2021-07-10 20:10:46 +02:00
parent 3e47b40794
commit 67871e8a4f

View File

@ -32,5 +32,5 @@ for battery in /sys/class/power_supply/BAT?*; do
# Will make a warn variable if discharging and low
[ "$status" = "🔋" ] && [ "$capacity" -le 25 ] && warn="❗"
# Prints the info
printf "%s%s%d%%" "$status" "$warn" "$capacity"; unset warn
printf "%s%s%d%%\n" "$status" "$warn" "$capacity"; unset warn
done && exit 0