summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-05-28 01:23:43 +0100
committerLeah Rowe <leah@libreboot.org>2024-05-28 01:23:43 +0100
commitb78f62c78b74b22b3bdc802a43f85aa094e9d50c (patch)
treed5f1dfae229bc75960edf0a589503068bd0d617d /script
parentb11e4c9f3ed22454be205d9667f0c53f36783e69 (diff)
roms: fix bad eval when comparing options
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script')
-rwxr-xr-xscript/roms6
1 files changed, 5 insertions, 1 deletions
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