mirror of
https://github.com/actuallymentor/battery.git
synced 2026-02-03 14:03:24 +00:00
fix brackets
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user