fix brackets

This commit is contained in:
Rene
2024-01-17 20:33:26 +01:00
parent e025614d26
commit f50bad8f3c

View File

@@ -446,10 +446,10 @@ if [[ "$action" == "voltage" ]]; then
log "Battery at ${voltage}V"
if (( $(echo "$voltage < $setting" | bc -l) && "$is_charging" == "disabled" )); then
if (( $(echo "$voltage < $setting" | bc -l) )) && [[ "$is_charging" == "disabled" ]]; then
enable_charging
fi
if (( $(echo "$voltage >= $subsetting" | bc -l) && "$is_charging" == "enabled" )); then
if (( $(echo "$voltage >= $subsetting" | bc -l) )) && [[ "$is_charging" == "enabled" ]]; then
disable_charging
fi