refactor(os): Check efibootmgr output quitely (#3)

This commit is contained in:
hygienic-books 2023-03-27 02:25:51 +02:00
parent ef029186fe
commit 2f209db426

View File

@ -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