Change dependency check for battery_char function

pull/974/head
Nils Winkler 2017-05-29 17:36:55 +02:00
parent 3fac1c7ea5
commit c33861a9b0
1 changed files with 3 additions and 1 deletions

View File

@ -482,7 +482,9 @@ if ! command_exists battery_charge ; then
}
fi
if ! command_exists battery_char ; then
# The battery_char function depends on the presence of the battery_percentage function.
# If battery_percentage is not defined, then define battery_char as a no-op.
if ! command_exists battery_percentage ; then
function battery_char (){
# no op
echo -n