From f4694a7ad29185cc6e9db6fb742d79ac8db7e353 Mon Sep 17 00:00:00 2001 From: root_sti Date: Sat, 26 Aug 2023 01:55:35 -0300 Subject: [PATCH] Some fixed. --- wms_batlarm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wms_batlarm.sh b/wms_batlarm.sh index 9b34ec8..992ac03 100755 --- a/wms_batlarm.sh +++ b/wms_batlarm.sh @@ -10,7 +10,7 @@ COLORS="aa0000 $AC" # alternate colors while :; do read -r STATUS < /sys/class/power_supply/BAT0/status # battery status - if [ $STATUS = "Discharging" ]; then # if status discharging + if [ "$STATUS" = "Discharging" ]; then # if status discharging for c in $COLORS; do # alternate border colors chwb -c $c $(pfw) sleep $FREQ