From 49f212207e05cf06f19598cbfc61d6c71e681f6b Mon Sep 17 00:00:00 2001 From: Pholawat <82935610+pholawat-tle@users.noreply.github.com> Date: Wed, 11 May 2022 15:53:37 +0700 Subject: [PATCH] import utils.sh in battery.sh --- scripts/battery.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/battery.sh b/scripts/battery.sh index c9d96d7..65211bf 100755 --- a/scripts/battery.sh +++ b/scripts/battery.sh @@ -2,6 +2,9 @@ # setting the locale, some users have issues with different locales, this forces the correct one export LC_ALL=en_US.UTF-8 +current_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +source $current_dir/utils.sh + linux_acpi() { arg=$1 BAT=$(ls -d /sys/class/power_supply/BAT* | head -1)