From 6cd462ce55fc0856a970e52e4776ac5cbdebadd9 Mon Sep 17 00:00:00 2001 From: Dylan Date: Tue, 23 Feb 2016 19:21:30 +1100 Subject: [PATCH] Fix indentation --- fetch | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/fetch b/fetch index 849161b8..15b6e63b 100755 --- a/fetch +++ b/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'='}