When wireless device is asleep (charge 0), don't change dock color
Some checks failed
SSH and echo to file / ssh (push) Failing after 5s

This commit is contained in:
Joey Hafner 2024-09-07 19:23:46 -07:00
parent d7e0928ca5
commit a49ff589fa
No known key found for this signature in database

View File

@ -75,6 +75,9 @@ function get_charge_percentage() {
tr -s ' ' |\
cut -d' ' -f3
)
if [[ $CHARGE == '0' ]]; then
exit 0
fi
echo "CHARGE: $CHARGE" >&2
echo "$CHARGE"
}