From 941c5560125e4e929e506c5d91e65e70667465e1 Mon Sep 17 00:00:00 2001 From: Dylan Date: Fri, 5 Feb 2016 22:08:32 +1100 Subject: [PATCH] Fixed doubled battery usage Windows --- fetch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fetch b/fetch index f89b94ea..2b9e1b0c 100755 --- a/fetch +++ b/fetch @@ -1242,8 +1242,8 @@ getbattery () { battery="$(wmic Path Win32_Battery get EstimatedChargeRemaining /value)" battery=${battery/EstimatedChargeRemaining'='} battery=${battery//[[:space:]]/ } - battery=${battery// } - battery+="${battery}%" + battery=${battery// } + battery+="%" ;; esac }