fix: /sys/class/power_supply/BAT0 is dir

This commit is contained in:
ange 2024-05-26 20:20:21 +02:00
parent d2e0521053
commit 87788fce99
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D

View File

@ -10,7 +10,7 @@ esac
[ -s modules/chroot/flatpak.txt ] \ [ -s modules/chroot/flatpak.txt ] \
&& printf '%s\n' flatpak xdg-desktop-portal-gtk >> pkglist.txt && printf '%s\n' flatpak xdg-desktop-portal-gtk >> pkglist.txt
[ -f /sys/class/power_supply/BAT0 ] && echo tlp >> pkglist.txt [ -d /sys/class/power_supply/BAT0 ] && echo tlp >> pkglist.txt
pacstrap -C rootfs/etc/pacman.conf -K /mnt \ pacstrap -C rootfs/etc/pacman.conf -K /mnt \
base linux{,-lts,-firmware} "$shell" - < pkglist.txt base linux{,-lts,-firmware} "$shell" - < pkglist.txt