From 345fb05ff3089799ff058fd5cb3a12dec18a055e Mon Sep 17 00:00:00 2001 From: Bang Lee Date: Sat, 18 Jul 2026 13:05:28 -0700 Subject: [PATCH] fix(quickemu): select the first complete firmware pair --- quickemu | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/quickemu b/quickemu index 9b65359..05bc8f1 100755 --- a/quickemu +++ b/quickemu @@ -1000,16 +1000,16 @@ function configure_bios() { );; esac fi - # Attempt each EFI_CODE file one by one, selecting the corresponding code and vars - # when an existing file is found. + # Select the first complete firmware pair, preserving the order of preference above. _IFS=$IFS IFS="," for f in "${ovmfs[@]}"; do # shellcheck disable=SC2086 set -- ${f}; - if [ -e "${1}" ]; then + if [ -e "${1}" ] && [ -e "${2}" ]; then EFI_CODE="${1}" EFI_EXTRA_VARS="${2}" + break fi done IFS=$_IFS