From eb7be168e1efeac3f8712b443a055353ea13359b Mon Sep 17 00:00:00 2001 From: Kroese Date: Wed, 17 Apr 2024 21:31:15 +0200 Subject: [PATCH] fix: Exclude external links --- src/install.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/install.sh b/src/install.sh index 70808c6..1b1b24a 100644 --- a/src/install.sh +++ b/src/install.sh @@ -93,7 +93,10 @@ 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" ] && [[ "${VERSION,,}" != "http"* ]] && CUSTOM=$(find "$STORAGE" -maxdepth 1 -type f -iname "${VERSION/\/storage\//}" -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) +fi ESD_URL="" MACHINE="q35"