From b78f62c78b74b22b3bdc802a43f85aa094e9d50c Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Tue, 28 May 2024 01:23:43 +0100 Subject: roms: fix bad eval when comparing options Signed-off-by: Leah Rowe --- script/roms | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'script') diff --git a/script/roms b/script/roms index 744afc52..44fbc73c 100755 --- a/script/roms +++ b/script/roms @@ -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 -- cgit v1.2.1