Fix windows displaying a blank battery output when no battery is found
This commit is contained in:
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
Block a user