fix: /sys/class/power_supply/BAT0 is dir
This commit is contained in:
parent
d2e0521053
commit
87788fce99
1 changed files with 1 additions and 1 deletions
|
|
@ -10,7 +10,7 @@ esac
|
|||
[ -s modules/chroot/flatpak.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 \
|
||||
base linux{,-lts,-firmware} "$shell" - < pkglist.txt
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue