diff options
author | Ben Sima <ben@bsima.me> | 2018-07-10 19:28:23 -0700 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2018-07-10 19:28:23 -0700 |
commit | d0ae9a93b97164821315010478436bece92c8021 (patch) | |
tree | 83138b70a641a7e30608b73e05d4ce0d7b139a7d | |
parent | 044a244083c24dc5ebed3e15fdbbe8be120b2dd7 (diff) |
Update syntax
Not sure what the (()) syntax even is
-rwxr-xr-x | checkbattery | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/checkbattery b/checkbattery index 5b4cfe6..35e2a05 100755 --- a/checkbattery +++ b/checkbattery @@ -5,7 +5,7 @@ export DISPLAY=:0 BATT=`acpi -b | grep -P -o '[0-9]+(?=%)'` TIME=`acpi -b | grep -P -o '[0-9]{2}:[0-9]{2}:[0-9]{2}'` -if (( $BATT < 10 )) +if [[ $BATT < 10 ]] then notify-send -u critical "LOW BATTERY!" "\ Battery Charge: ${BATT}% |