mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
replace grep with rg
This commit is contained in:
parent
21f223b853
commit
4819849658
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ _prepare_pacman() {
|
||||||
# package_installation
|
# package_installation
|
||||||
_install_packages() {
|
_install_packages() {
|
||||||
# add packages from archboot defaults
|
# 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
|
# fallback if _PACKAGES is empty
|
||||||
[[ -z "${_PACKAGES}" ]] && _PACKAGES="base linux linux-firmware"
|
[[ -z "${_PACKAGES}" ]] && _PACKAGES="base linux linux-firmware"
|
||||||
_auto_packages
|
_auto_packages
|
||||||
|
|
Loading…
Reference in a new issue