From 18a06474e44b60f541b0b89cd4cee2404db7c908 Mon Sep 17 00:00:00 2001 From: Kroese Date: Thu, 27 Feb 2025 19:23:32 +0100 Subject: [PATCH] feat: Check path to boot.iso --- src/install.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/install.sh b/src/install.sh index 9691de9..fc354e8 100644 --- a/src/install.sh +++ b/src/install.sh @@ -168,6 +168,10 @@ findFile() { local ext="$1" local file + if [ -d "/boot.$ext" ]; then + warn "The file /boot.$ext has an invalid path!" + fi + file=$(find / -maxdepth 1 -type f -iname "boot.$ext" | head -n 1) [ ! -s "$file" ] && file=$(find "$STORAGE" -maxdepth 1 -type f -iname "boot.$ext" | head -n 1) detectType "$file" && return 0