From 33fce465251545c543dff22e5ff3ea855ce5fc46 Mon Sep 17 00:00:00 2001 From: matoro Date: Mon, 29 Jan 2018 10:30:53 -0500 Subject: [PATCH] fix battery detection on Windows --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 8df42edc..b7035759 100755 --- a/neofetch +++ b/neofetch @@ -2261,7 +2261,7 @@ get_battery() { "Windows") battery="$(wmic Path Win32_Battery get EstimatedChargeRemaining)" battery="${battery/EstimatedChargeRemaining}" - [[ "$(trim "$battery")" ]] && battery="%" + [[ "$(trim "$battery")" ]] && battery="$(trim "$battery")%" ;; "Haiku")