From 05a619436ef1ff0abfe8dcb51827ccc01395030c Mon Sep 17 00:00:00 2001 From: Kroese Date: Wed, 12 Jun 2024 03:07:14 +0200 Subject: [PATCH] Update install.sh --- src/install.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/install.sh b/src/install.sh index 57d3d67..f480f8d 100644 --- a/src/install.sh +++ b/src/install.sh @@ -9,9 +9,11 @@ detect () { dir=$(isoinfo -f -i "$file") - # Automaticly detect UEFI-compatible ISO's - if echo "${dir^^}" | grep -q "^/EFI"; then - [ -z "${BOOT_MODE:-}" ] && BOOT_MODE="uefi" + if [ -z "${BOOT_MODE:-}" ]; then + # Automaticly detect UEFI-compatible ISO's + dir=$(isoinfo -f -i "$file") + dir=$(echo "${dir^^}" | grep "^/EFI") + [ -n "$dir" ] && BOOT_MODE="uefi" fi BOOT="$file"