mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
added newline,caused crashes to some users & bash
This commit is contained in:
parent
3e47b40794
commit
67871e8a4f
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user