From c244ff56eef5fed0ca82225affd3c09e9df48cce Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Fri, 28 Jun 2024 11:39:53 +0200 Subject: [PATCH] replace grep with rg --- usr/lib/archboot/installer/common.sh | 58 ++++++++++++++-------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/usr/lib/archboot/installer/common.sh b/usr/lib/archboot/installer/common.sh index 86616a3e4..64d1b342d 100644 --- a/usr/lib/archboot/installer/common.sh +++ b/usr/lib/archboot/installer/common.sh @@ -12,7 +12,7 @@ _LSBLK="lsblk -rpno" _FINDMNT="findmnt -vno SOURCE" # don't use _DESTDIR=/mnt because it's intended to mount other things there! # check first if bootet in archboot -if grep -qw '^archboot' /etc/hostname; then +if rg -qw '^archboot' /etc/hostname; then _DESTDIR="/mnt/install" _NSPAWN="systemd-nspawn -q -D ${_DESTDIR}" else @@ -33,7 +33,7 @@ _linux_firmware() { _PACKAGES="${_PACKAGES// linux-firmware / }" #shellcheck disable=SC2013 for i in $(cut -d ' ' -f1