refactor(os): Check efibootmgr output quitely (#3)
This commit is contained in:
parent
ef029186fe
commit
2f209db426
2
setup.sh
2
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user