From 478b65c417a47b448d4af01220a05f0424a7a3ce Mon Sep 17 00:00:00 2001 From: Kroese Date: Fri, 14 Jun 2024 02:47:50 +0200 Subject: [PATCH] Update install.sh --- src/install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/install.sh b/src/install.sh index 0ab7a1e..2f96fcd 100644 --- a/src/install.sh +++ b/src/install.sh @@ -14,15 +14,15 @@ detectType() { BOOT="$file" ;; * ) return 1 ;; esac - + [ -n "$BOOT_MODE" ] && return 0 [[ "${file,,}" != *".iso" ]] && return 0 # Automaticly detect UEFI-compatible ISO's dir=$(isoinfo -f -i "$file") - + if [ -z "$dir" ]; then - BOOT="" + BOOT="" error "Failed to read ISO file, invalid format!" && return 1 fi