Update install.sh

This commit is contained in:
Kroese 2024-06-14 02:47:50 +02:00 committed by GitHub
parent ad60aace6c
commit 478b65c417
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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