Fix windows displaying a blank battery output when no battery is found
This commit is contained in:
parent
3496c85248
commit
8298f64394
1 changed files with 2 additions and 1 deletions
3
neofetch
3
neofetch
|
@ -1603,7 +1603,8 @@ getbattery () {
|
|||
battery=${battery/EstimatedChargeRemaining'='}
|
||||
battery=${battery//[[:space:]]/ }
|
||||
battery=${battery// }
|
||||
battery+="%"
|
||||
[ ! -z "$battery" ] && \
|
||||
battery+="%"
|
||||
;;
|
||||
esac
|
||||
|
||||
|
|
Loading…
Reference in a new issue