fix: paths, laptop check

This commit is contained in:
AngeD 2023-03-14 19:51:28 +01:00
parent ab9a661dcc
commit c9e81f814b
3 changed files with 4 additions and 3 deletions

View file

@ -26,7 +26,7 @@ systemctl enable \
reflector.timer \
systemd-timesyncd
if [ -d /sys/module/battery/ ]; then
if ls -d /sys/class/power_supply/BAT*/ > /dev/null 2>&1; then
$PACMAN "${laptop_pkg[@]}"
systemctl enable tlp
fi