Fix windows displaying a blank battery output when no battery is found
This commit is contained in:
parent
3496c85248
commit
8298f64394
3
neofetch
3
neofetch
|
@ -1603,7 +1603,8 @@ getbattery () {
|
||||||
battery=${battery/EstimatedChargeRemaining'='}
|
battery=${battery/EstimatedChargeRemaining'='}
|
||||||
battery=${battery//[[:space:]]/ }
|
battery=${battery//[[:space:]]/ }
|
||||||
battery=${battery// }
|
battery=${battery// }
|
||||||
battery+="%"
|
[ ! -z "$battery" ] && \
|
||||||
|
battery+="%"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
Reference in New Issue