Simplified setup fixture for pmset/_command_exists
This commit is contained in:
@@ -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
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user