From e47a3785a86907a2a5b2f4ee42017e6616c9f1fb Mon Sep 17 00:00:00 2001 From: Kroese Date: Tue, 16 Apr 2024 14:14:21 +0200 Subject: [PATCH] feat: Allow filenames in VERSION (#63) --- Dockerfile | 2 +- src/install.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 80d2a2a..39a881a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ FROM scratch -COPY --from=qemux/qemu-arm:1.08 / / +COPY --from=qemux/qemu-arm:1.09 / / ARG DEBCONF_NOWARNINGS "yes" ARG DEBIAN_FRONTEND "noninteractive" diff --git a/src/install.sh b/src/install.sh index 84aaa3b..fb22340 100644 --- a/src/install.sh +++ b/src/install.sh @@ -18,6 +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/\/storage\//}" -printf "%f\n" | head -n 1) ESD_URL="" TMP="$STORAGE/tmp"