From 6b63459a91449f76ca9a90591cd1f13afb75c768 Mon Sep 17 00:00:00 2001 From: Kroese Date: Wed, 17 Apr 2024 22:37:54 +0200 Subject: [PATCH] fix: Exclude external links (#73) --- src/install.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/install.sh b/src/install.sh index 59953fb..bd47e24 100644 --- a/src/install.sh +++ b/src/install.sh @@ -18,7 +18,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" ] && 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="" TMP="$STORAGE/tmp"