From 9bbe8f22c8a27316e983327bf621e85e07f0660e Mon Sep 17 00:00:00 2001 From: Kroese Date: Thu, 27 Feb 2025 19:26:19 +0100 Subject: [PATCH] feat: Check path to custom .iso --- src/install.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/install.sh b/src/install.sh index 1a5f7b9..a22c2d8 100644 --- a/src/install.sh +++ b/src/install.sh @@ -202,6 +202,10 @@ detectCustom() { local file base CUSTOM="" + if [ -d "/custom.iso" ]; then + error "The file /custom.iso has an invalid path!" && return 1 + fi + file=$(find / -maxdepth 1 -type f -iname custom.iso | head -n 1) [ ! -s "$file" ] && file=$(find "$STORAGE" -maxdepth 1 -type f -iname custom.iso | head -n 1)