From 4bfd81c1aa592c404142ca6d246d209b12e9a60d Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Fri, 7 Sep 2012 14:37:37 +0900 Subject: [PATCH] update __my_battery_status --- bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bashrc b/bashrc index 0c3ec72..24095e3 100755 --- a/bashrc +++ b/bashrc @@ -499,7 +499,7 @@ winln(){ __my_battery_status(){ local dir=/sys/class/power_supply/BAT0 - if test -d $dir + if test -d $dir && test -r $dir/status && test -r $dir/charge_full && test -r $dir/charge_now then local st=$(cat $dir/status) local full=$(cat $dir/charge_full)