Fix indentation
This commit is contained in:
parent
4f51ecca75
commit
6cd462ce55
1 changed files with 6 additions and 7 deletions
13
fetch
13
fetch
|
@ -1398,20 +1398,19 @@ getbattery () {
|
|||
battery="None"
|
||||
fi
|
||||
;;
|
||||
|
||||
|
||||
"BSD")
|
||||
case "$distro" in
|
||||
"FreeBSD"*)
|
||||
battery=$(acpiconf -i 0 | awk -F ':\t' '/Remaining capacity/ {print $2}')
|
||||
;;
|
||||
esac
|
||||
case "$distro" in
|
||||
"FreeBSD"*)
|
||||
battery=$(acpiconf -i 0 | awk -F ':\t' '/Remaining capacity/ {print $2}')
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
|
||||
"Mac OS X")
|
||||
battery="$(pmset -g batt | grep -o '[0-9]*%')"
|
||||
;;
|
||||
|
||||
|
||||
"Windows")
|
||||
battery="$(wmic Path Win32_Battery get EstimatedChargeRemaining /value)"
|
||||
battery=${battery/EstimatedChargeRemaining'='}
|
||||
|
|
Loading…
Reference in a new issue