From 4841044e6d89d2891b00f63289ab8e562bb33a87 Mon Sep 17 00:00:00 2001 From: Kroese Date: Wed, 22 May 2024 11:07:35 +0200 Subject: [PATCH] Update install.sh --- src/install.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/install.sh b/src/install.sh index 2a10491..9081b62 100644 --- a/src/install.sh +++ b/src/install.sh @@ -188,17 +188,16 @@ abortInstall() { detectCustom() { local file + CUSTOM="" 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) if [ ! -s "$file" ] && [[ "${VERSION,,}" != "http"* ]]; then local base=$(basename "$VERSION") - file=$(find "$STORAGE" -maxdepth 1 -type f -iname "$base" | head -n 1) + file="$STORAGE/$base" fi - CUSTOM="" - if [ ! -f "$file" ] || [ ! -s "$file" ]; then return 0 fi