Skip to content

Commit

Permalink
Bug: Fix condition check
Browse files Browse the repository at this point in the history
In bash everything is a string, boolean check must be explicit.
  • Loading branch information
fvincenzo committed Sep 20, 2024
1 parent f0318db commit 1d9476e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/battery.sh
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ battery_status()
main()
{
bat_label=$(get_tmux_option "@dracula-battery-label" "")
if [ "$bat_label" ]; then
if [ "$bat_label" == false ]; then
bat_label=""
fi

Expand Down

0 comments on commit 1d9476e

Please sign in to comment.