From 4cd940052cd8c10581094f7fa8aa234297ad20fe Mon Sep 17 00:00:00 2001 From: Dylan Date: Thu, 4 Feb 2016 11:18:05 +1100 Subject: [PATCH] Fix battery usage on Windows --- fetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fetch b/fetch index 0ffb6ff3..52ef4049 100755 --- a/fetch +++ b/fetch @@ -1247,7 +1247,7 @@ getbattery () { ;; "Windows") - battery="$(wmic path Win32_Battery Get EstimatedChargeRemaining /value)" + battery="$(wmic Path Win32_Battery)" battery=${battery/EstimatedChargeRemaining'='} battery=${battery//[[:space:]]/ } battery=${battery// }