Skip to content

Commit 1d9476e

Browse files
committed
Bug: Fix condition check
In bash everything is a string, boolean check must be explicit.
1 parent f0318db commit 1d9476e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/battery.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ battery_status()
151151
main()
152152
{
153153
bat_label=$(get_tmux_option "@dracula-battery-label" "")
154-
if [ "$bat_label" ]; then
154+
if [ "$bat_label" == false ]; then
155155
bat_label=""
156156
fi
157157

0 commit comments

Comments
 (0)