Fix battery usage on Windows
This commit is contained in:
parent
87bf157bf4
commit
4cd940052c
1 changed files with 1 additions and 1 deletions
2
fetch
2
fetch
|
@ -1247,7 +1247,7 @@ getbattery () {
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"Windows")
|
"Windows")
|
||||||
battery="$(wmic path Win32_Battery Get EstimatedChargeRemaining /value)"
|
battery="$(wmic Path Win32_Battery)"
|
||||||
battery=${battery/EstimatedChargeRemaining'='}
|
battery=${battery/EstimatedChargeRemaining'='}
|
||||||
battery=${battery//[[:space:]]/ }
|
battery=${battery//[[:space:]]/ }
|
||||||
battery=${battery// }
|
battery=${battery// }
|
||||||
|
|
Loading…
Reference in a new issue