grep -q is always silentÄ

This commit is contained in:
Tobias Powalowski 2023-01-14 09:03:27 +01:00
parent ea85b0a049
commit 3d7194255f

View file

@ -43,7 +43,7 @@ _auto_swap () {
_auto_mdadm()
{
if [[ -e ${_DESTDIR}/etc/mdadm.conf ]]; then
if grep -q ^md /proc/mdstat 2>/dev/null; then
if grep -q ^md /proc/mdstat; then
_dialog --infobox "Enable mdadm settings on installed system ..." 3 70
mdadm -Ds >> "${_DESTDIR}"/etc/mdadm.conf
fi