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.
1 parent de9b473 commit 10e8829Copy full SHA for 10e8829
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