roms: fix bad eval when comparing options

Signed-off-by: Leah Rowe <leah@libreboot.org>
audit2-merge1
Leah Rowe 2024-05-28 01:23:43 +01:00 committed by Leah Rowe
parent 724dbfe0ce
commit 1ac4f7409e
1 changed files with 5 additions and 1 deletions

View File

@ -159,7 +159,11 @@ configure_target()
[ "$_disk" != "nvme" ] && [ "$_disk" != "ahci" ] && \
[ "$_disk" != "ata" ] && _grub_scan_disk="nvme ahci ata" \
&& break
eval "[ -n \"\$_$_disk\" ] && continue"
[ -n "$_ata" ] && [ "$_disk" = "ata" ] && continue
[ -n "$_ahci" ] && [ "$_disk" = "ahci" ] && continue
[ -n "$_nvme" ] && [ "$_disk" = "nvme" ] && continue
eval "_$_disk=\"$_disk\""
_grub_scan_disk="$_grub_scan_disk $_disk"
done