Fix weird leftover escape codes in stdout mode
This commit is contained in:
parent
59cc2f61ce
commit
5e5cf5da2a
2
fetch
2
fetch
|
@ -1235,7 +1235,7 @@ getbattery () {
|
||||||
# If there's only a single battery and it's battery 0,
|
# If there's only a single battery and it's battery 0,
|
||||||
# don't number the subtitle.
|
# don't number the subtitle.
|
||||||
if [ "${#batteries[@]}" == 1 ]; then
|
if [ "${#batteries[@]}" == 1 ]; then
|
||||||
battery="$(prin "${title}: ${batteries[0]}%")"
|
battery="${batteries[0]}%"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Reference in New Issue