Update install.sh

This commit is contained in:
Kroese 2024-06-05 19:36:54 +02:00 committed by GitHub
parent 8649e3b45a
commit cfe76c7f51
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -167,10 +167,13 @@ abortInstall() {
local dir="$1"
local iso="$2"
local efi
[[ "${iso,,}" == *".esd" ]] && exit 60
if [ ! -d "$dir/EFI" ]; then
efi=$(find "$dir" -maxdepth 1 -type d -iname efi | head -n 1)
if [ -z "$efi" ]; then
[[ "${PLATFORM,,}" == "x64" ]] && BOOT_MODE="windows_legacy"
fi