diff --git a/src/install.sh b/src/install.sh index 39b20c8..18afe23 100644 --- a/src/install.sh +++ b/src/install.sh @@ -620,7 +620,7 @@ prepareImage() { missing=$(basename "$dir/$EFISYS") [ ! -f "$dir/$ETFS" ] && missing=$(basename "$dir/$ETFS") - error "failed to locate file '${missing,,}' in ISO image!" + error "Failed to locate file \"${missing,,}\" in ISO image!" return 1 fi @@ -927,6 +927,10 @@ buildImage() { error "File $BOOT does already exist?!" && return 1 fi + if [ -f "$ETFS" ]; then + error "Failed to locate file \"$ETFS\" in ISO image!" && return 1 + fi + base=$(basename "$BOOT") local out="$TMP/${base%.*}.tmp" rm -f "$out"