From 34f256dd252ceed3d0a12f324f67ce66667f6096 Mon Sep 17 00:00:00 2001 From: Kroese Date: Tue, 16 Apr 2024 14:12:35 +0200 Subject: [PATCH] feat: Allow filename in VERSION --- src/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/install.sh b/src/install.sh index 5e8dc7f..fb22340 100644 --- a/src/install.sh +++ b/src/install.sh @@ -18,7 +18,7 @@ fi CUSTOM=$(find "$STORAGE" -maxdepth 1 -type f -iname custom.iso -printf "%f\n" | head -n 1) [ -z "$CUSTOM" ] && CUSTOM=$(find "$STORAGE" -maxdepth 1 -type f -iname boot.iso -printf "%f\n" | head -n 1) [ -z "$CUSTOM" ] && CUSTOM=$(find "$STORAGE" -maxdepth 1 -type f -iname custom.img -printf "%f\n" | head -n 1) -[ -z "$CUSTOM" ] && CUSTOM=$(find "$STORAGE" -maxdepth 1 -type f -iname "$VERSION" -printf "%f\n" | head -n 1) +[ -z "$CUSTOM" ] && CUSTOM=$(find "$STORAGE" -maxdepth 1 -type f -iname "${VERSION/\/storage\//}" -printf "%f\n" | head -n 1) ESD_URL="" TMP="$STORAGE/tmp"