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