Fix weird leftover escape codes in stdout mode

This commit is contained in:
Dylan 2016-02-06 01:31:13 +11:00
parent 59cc2f61ce
commit 5e5cf5da2a
1 changed files with 1 additions and 1 deletions

2
fetch
View File

@ -1235,7 +1235,7 @@ getbattery () {
# If there's only a single battery and it's battery 0,
# don't number the subtitle.
if [ "${#batteries[@]}" == 1 ]; then
battery="$(prin "${title}: ${batteries[0]}%")"
battery="${batteries[0]}%"
return
fi