Update install.sh

This commit is contained in:
Kroese 2024-06-12 03:07:14 +02:00 committed by GitHub
parent 4304f61985
commit 05a619436e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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"