From 29aed10d1e9e980602b7b8f6e67c06df80bc31dc Mon Sep 17 00:00:00 2001 From: Kroese Date: Fri, 28 Feb 2025 03:45:27 +0100 Subject: [PATCH] Update install.sh --- src/install.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/install.sh b/src/install.sh index f93a6c4..c1ed86a 100644 --- a/src/install.sh +++ b/src/install.sh @@ -200,14 +200,16 @@ abortInstall() { detectCustom() { local file base + local fname="custom.iso" + CUSTOM="" - if [ -d "/custom.iso" ]; then - error "The file /custom.iso has an invalid path!" && return 1 + if [ -d "/$fname" ]; then + error "The file /$fname 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) + file=$(find / -maxdepth 1 -type f -iname "$fname" | head -n 1) + [ ! -s "$file" ] && file=$(find "$STORAGE" -maxdepth 1 -type f -iname "$fname" | head -n 1) if [ ! -s "$file" ] && [[ "${VERSION,,}" != "http"* ]]; then base=$(basename "$VERSION")