Skip to content

Commit

Permalink
UPDATE: the power_supply device selection
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-onejun committed Jan 3, 2024
1 parent 3f2466a commit a43fd55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/battery.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ source $current_dir/utils.sh

linux_acpi() {
arg=$1
BAT=$(ls -d /sys/class/power_supply/BAT* | head -1)
BAT=$(ls -d /sys/class/power_supply/*)
if [ ! -x "$(which acpi 2> /dev/null)" ];then
case "$arg" in
status)
Expand Down

0 comments on commit a43fd55

Please sign in to comment.