replace grep with rg and sed with sd

This commit is contained in:
Tobias Powalowski 2024-06-28 14:31:35 +02:00
parent d874cc905f
commit 7b6a5ffebe

View file

@ -86,7 +86,7 @@ _auto_swap () {
_auto_mdadm() _auto_mdadm()
{ {
if [[ -e ${_DESTDIR}/etc/mdadm.conf ]]; then if [[ -e ${_DESTDIR}/etc/mdadm.conf ]]; then
if rg -q ^md /proc/mdstat 2>"${_NO_LOG}"; then if rg -q '^md' /proc/mdstat 2>"${_NO_LOG}"; then
_progress "34" "Enable mdadm settings on installed system..." _progress "34" "Enable mdadm settings on installed system..."
mdadm -Ds >> "${_DESTDIR}"/etc/mdadm.conf mdadm -Ds >> "${_DESTDIR}"/etc/mdadm.conf
fi fi