summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
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