Simplified setup fixture for pmset/_command_exists
parent
c221648a7f
commit
28c41efcbc
|
|
@ -10,12 +10,6 @@ load ../../plugins/available/battery.plugin
|
||||||
function setup_command_exists_pmset {
|
function setup_command_exists_pmset {
|
||||||
function _command_exists {
|
function _command_exists {
|
||||||
case "$1" in
|
case "$1" in
|
||||||
"upower")
|
|
||||||
false
|
|
||||||
;;
|
|
||||||
"acpi")
|
|
||||||
false
|
|
||||||
;;
|
|
||||||
"pmset")
|
"pmset")
|
||||||
true
|
true
|
||||||
;;
|
;;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue