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
1
neofetch
1
neofetch
|
@ -1603,6 +1603,7 @@ getbattery () {
|
|||
battery=${battery/EstimatedChargeRemaining'='}
|
||||
battery=${battery//[[:space:]]/ }
|
||||
battery=${battery// }
|
||||
[ ! -z "$battery" ] && \
|
||||
battery+="%"
|
||||
;;
|
||||
esac
|
||||
|
|
Loading…
Reference in a new issue