fix: /sys/class/power_supply/BAT0 is dir
This commit is contained in:
parent
d2e0521053
commit
87788fce99
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user