From bf832cdab2cc552d04058b515ceb4649fd17c14a Mon Sep 17 00:00:00 2001 From: Kroese Date: Thu, 27 Feb 2025 19:15:06 +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 7f10eec..0b2665b 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)