We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0df96af + 10e8829 commit e78f4edCopy full SHA for e78f4ed
scripts/battery_icon_charge.sh
@@ -51,7 +51,7 @@ get_icon_charge_settings() {
51
print_icon_charge() {
52
percentage=$($CURRENT_DIR/battery_percentage.sh | sed -e 's/%//')
53
# if percentage is empty, assume it's a desktop
54
- if [ -o "$percentage" == "" ]; then
+ if [[-o "$percentage" == "" || -z "$percentage" ]]; then
55
printf "$icon_charge_default"
56
elif [ $percentage -gt 98 ]; then
57
printf "$icon_charge_tier10"
0 commit comments