diff --git a/setup.sh b/setup.sh index 5dc71d8..5a1ecb2 100644 --- a/setup.sh +++ b/setup.sh @@ -612,7 +612,7 @@ function get_disks_with_one_efipart () { } function add_zbm_to_efi () { - if ! efibootmgr | grep -Pi -- 'ZFSBootMenu'; then + if ! efibootmgr | grep -Piq -- 'ZFSBootMenu'; then local efi_disks_list efi_disks_list="$(get_disks_with_one_efipart)" if grep -Piq -- '^'"${efi_drive}"'$' <<<"${efi_disks_list}"; then