Consistency

This commit is contained in:
David Heinemeier Hansson committed 2026-05-21 19:30:30 +02:00
1 parent 486c73e6df
commit fed2298235
14 files changed
+17 -17

No files matched your search

+1 -1
View File
@@ -44,7 +44,7 @@ if [[ $shell_output == "true" ]]; then
start=$(cat /sys/class/power_supply/BAT*/charge_control_start_threshold 2>/dev/null | head -1)
if [[ -n $end ]]; then
if [[ -n $start && $start != "$end" ]]; then
if [[ -n $start && $start != $end ]]; then
printf 'threshold\t%s-%s%%\n' "$start" "$end"
else
printf 'threshold\t%s%%\n' "$end"