From 50707ed41f2f06aa8cce70d0559a233b91d29dd4 Mon Sep 17 00:00:00 2001 From: Kroese Date: Thu, 18 Apr 2024 08:51:45 +0200 Subject: [PATCH] fix: Convert relative path --- src/install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/install.sh b/src/install.sh index bd47e24..abb6f26 100644 --- a/src/install.sh +++ b/src/install.sh @@ -20,7 +20,9 @@ CUSTOM=$(find "$STORAGE" -maxdepth 1 -type f -iname custom.iso -printf "%f\n" | [ -z "$CUSTOM" ] && CUSTOM=$(find "$STORAGE" -maxdepth 1 -type f -iname custom.img -printf "%f\n" | head -n 1) if [ -z "$CUSTOM" ] && [[ "${VERSION,,}" != "http"* ]]; then - CUSTOM=$(find "$STORAGE" -maxdepth 1 -type f -iname "${VERSION/\/storage\//}" -printf "%f\n" | head -n 1) + FN="${VERSION/\/storage\//}" + [[ "$FN" == "."* ]] && FN="${FN:1}" + CUSTOM=$(find "$STORAGE" -maxdepth 1 -type f -iname "$FN" -printf "%f\n" | head -n 1) fi ESD_URL=""