From 636eaf5a3a28324ddf54b49a2b25802f26edb74f Mon Sep 17 00:00:00 2001 From: Kroese Date: Wed, 24 Apr 2024 16:19:59 +0200 Subject: [PATCH] fix: Architecture --- src/install.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/install.sh b/src/install.sh index 4ad66ec..a24fa6c 100644 --- a/src/install.sh +++ b/src/install.sh @@ -102,7 +102,7 @@ if [ -z "$CUSTOM" ] && [[ "${VERSION,,}" != "http"* ]]; then fi ESD_URL="" -ARCH="x64" +ARCHI="x64" MACHINE="q35" TMP="$STORAGE/tmp" DIR="$TMP/unpack" @@ -384,10 +384,10 @@ getESD() { local winCatalog size case "${VERSION,,}" in - "win11${ARCH,,}") + "win11${ARCHI,,}") winCatalog="https://go.microsoft.com/fwlink?linkid=2156292" ;; - "win10${ARCH,,}") + "win10${ARCHI,,}") winCatalog="https://go.microsoft.com/fwlink/?LinkId=841361" ;; *) @@ -421,7 +421,7 @@ getESD() { local esdLang="en-us" local editionName="Professional" - local edQuery='//File[Architecture="'${ARCH}'"][Edition="'${editionName}'"]' + local edQuery='//File[Architecture="'${ARCHI}'"][Edition="'${editionName}'"]' echo -e '' > "${dir}/products_filter.xml" xmllint --nonet --xpath "${edQuery}" "${dir}/products.xml" >> "${dir}/products_filter.xml" 2>/dev/null @@ -529,10 +529,10 @@ downloadImage() { if [[ "$EXTERNAL" != [Yy1]* ]]; then case "${VERSION,,}" in - "win11${ARCH,,}") + "win11${ARCHI,,}") url="https://dl.bobpony.com/windows/11/en-us_windows_11_23h2_x64.iso" ;; - "win10${ARCH,,}") + "win10${ARCHI,,}") url="https://dl.bobpony.com/windows/10/en-us_windows_10_22h2_x64.iso" ;; *)