replace grep with rg

This commit is contained in:
Tobias Powalowski 2024-06-26 21:52:49 +02:00
parent 21f223b853
commit 4819849658

View file

@ -50,7 +50,7 @@ _prepare_pacman() {
# package_installation
_install_packages() {
# add packages from archboot defaults
_PACKAGES=$(grep '^_PACKAGES' /etc/archboot/defaults | sed -e 's#_PACKAGES=##g' -e 's#"##g')
_PACKAGES="$(rg -o '^_PACKAGES="(.*)"' -r '$1' /etc/archboot/defaults)"
# fallback if _PACKAGES is empty
[[ -z "${_PACKAGES}" ]] && _PACKAGES="base linux linux-firmware"
_auto_packages