From 14a3c47f9cf11d88315e8a306e0c47edf1a2564c Mon Sep 17 00:00:00 2001 From: Kroese Date: Wed, 17 Apr 2024 21:26:00 +0200 Subject: [PATCH] fix: Exclude external links --- src/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/install.sh b/src/install.sh index 1878967..70808c6 100644 --- a/src/install.sh +++ b/src/install.sh @@ -93,7 +93,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) +[ -z "$CUSTOM" ] && [[ "${VERSION,,}" != "http"* ]] && CUSTOM=$(find "$STORAGE" -maxdepth 1 -type f -iname "${VERSION/\/storage\//}" -printf "%f\n" | head -n 1) ESD_URL="" MACHINE="q35"