Use consistent bash5 style for conditionals and quoting

This commit is contained in:
David Heinemeier Hansson committed 2026-02-21 10:18:47 +01:00
1 parent d2acf3b6ba
commit 7514ae7dcf
113 files changed
+289 -287

No files matched your search

+3 -3
View File
@@ -4,9 +4,9 @@
# Used by the battery monitor and other battery-related checks.
for bat in /sys/class/power_supply/BAT*; do
[[ -r "$bat/present" ]] &&
[[ "$(cat "$bat/present")" == "1" ]] &&
[[ "$(cat "$bat/type")" == "Battery" ]] &&
[[ -r $bat/present ]] &&
[[ $(cat $bat/present) == "1" ]] &&
[[ $(cat $bat/type) == "Battery" ]] &&
exit 0
done