diff options
author | Leah Rowe <leah@libreboot.org> | 2024-05-28 01:23:43 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2024-05-28 01:23:43 +0100 |
commit | b78f62c78b74b22b3bdc802a43f85aa094e9d50c (patch) | |
tree | d5f1dfae229bc75960edf0a589503068bd0d617d /script | |
parent | b11e4c9f3ed22454be205d9667f0c53f36783e69 (diff) |
roms: fix bad eval when comparing options
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script')
-rwxr-xr-x | script/roms | 6 |
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 |