summaryrefslogtreecommitdiff
path: root/resources/scripts/build/boot
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2021-11-30 18:31:19 +0000
committerLeah Rowe <leah@libreboot.org>2021-11-30 18:31:19 +0000
commit9a0677eafd7c725bd3c92e7bafc2cd313eb50d53 (patch)
tree6f30f8c8e8fc61f55be0611609e67f84eaabe30a /resources/scripts/build/boot
parentb74056563fa0d23605d4c5c91e22493d424f0765 (diff)
fix incorrect logic on recent grub optimization patch
or was used, instead of and
Diffstat (limited to 'resources/scripts/build/boot')
-rwxr-xr-xresources/scripts/build/boot/roms_helper6
1 files changed, 3 insertions, 3 deletions
diff --git a/resources/scripts/build/boot/roms_helper b/resources/scripts/build/boot/roms_helper
index fdb938ad..09ab65f5 100755
--- a/resources/scripts/build/boot/roms_helper
+++ b/resources/scripts/build/boot/roms_helper
@@ -65,10 +65,10 @@ payload_memtest="n"
# Override the above defaults using board.cfg
source "resources/coreboot/${board}/board.cfg"
-if [ "${grub_scan_disk}" != "both" ] || \
- [ "${grub_scan_disk}" != "ata" ] || \
+if [ "${grub_scan_disk}" != "both" ] && \
+ [ "${grub_scan_disk}" != "ata" ] && \
[ "${grub_scan_disk}" != "ahci" ]; then
- printf "build/roms: Target %s 's grub_scan_disk variable: unvalid value. Skipping build.\n" "${board}"
+ printf "build/roms: Target %s 's grub_scan_disk variable: invalid value. Skipping build.\n" "${board}"
exit 1
fi