mirror of
https://github.com/dylanaraps/neofetch.git
synced 2026-01-03 14:12:09 +00:00
Fix weird leftover escape codes in stdout mode
This commit is contained in:
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
Block a user