mirror of
https://github.com/actuallymentor/battery.git
synced 2026-02-03 14:03:24 +00:00
cleared up logging message
This commit is contained in:
@@ -357,7 +357,7 @@ if [[ "$action" == "charge" ]]; then
|
||||
|
||||
# Check if percentage is an integer [1-100]
|
||||
if ! [[ $setting =~ ^[1-9][0-9]?$|^100$ ]]; then
|
||||
log "Battery percentage is not a valid number, exiting (battery percentage: $setting)"
|
||||
log "Battery percentage is not a valid percentage [1-100], exiting (battery percentage: $setting)"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user