tFixed wrong behavior with battery checking - scripts - various script and utils
(HTM) git clone git://z3bra.org/scripts
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) commit 938c6caae2c64acb7ed6a5552f1b0a9542365fae
(DIR) parent 229b7c14c83657ee2fcde73e35f8d3370effa693
(HTM) Author: z3bra <willy@mailoo.org>
Date: Fri, 23 May 2014 12:31:37 +0200
Fixed wrong behavior with battery checking
Diffstat:
M mkbar | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/mkbar b/mkbar
t@@ -166,7 +166,7 @@ fi
buf="${buf}$(makebar $(volume)) "
# Show battery status if there is a battery (U DONT SAY)
-test -n "$(battery)" &&
+test -n "${battery}" &&
buf="${buf}%{F#ffef79ae} %{F-} $(makebar $(battery)) "
buf="${buf}%{F#ffb3b3b3} %{F-} $(clock) "