Update install.sh
This commit is contained in:
parent
ad60aace6c
commit
478b65c417
1 changed files with 3 additions and 3 deletions
|
|
@ -14,15 +14,15 @@ detectType() {
|
||||||
BOOT="$file" ;;
|
BOOT="$file" ;;
|
||||||
* ) return 1 ;;
|
* ) return 1 ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
[ -n "$BOOT_MODE" ] && return 0
|
[ -n "$BOOT_MODE" ] && return 0
|
||||||
[[ "${file,,}" != *".iso" ]] && return 0
|
[[ "${file,,}" != *".iso" ]] && return 0
|
||||||
|
|
||||||
# Automaticly detect UEFI-compatible ISO's
|
# Automaticly detect UEFI-compatible ISO's
|
||||||
dir=$(isoinfo -f -i "$file")
|
dir=$(isoinfo -f -i "$file")
|
||||||
|
|
||||||
if [ -z "$dir" ]; then
|
if [ -z "$dir" ]; then
|
||||||
BOOT=""
|
BOOT=""
|
||||||
error "Failed to read ISO file, invalid format!" && return 1
|
error "Failed to read ISO file, invalid format!" && return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue