From c7737b5d87a33d3fdfd4a88d1666bb4de2a4df5b Mon Sep 17 00:00:00 2001 From: thelamer Date: Sat, 10 Feb 2024 14:49:36 -0800 Subject: [PATCH] KASM-5616 update blender mirror --- src/ubuntu/install/blender/install_blender.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ubuntu/install/blender/install_blender.sh b/src/ubuntu/install/blender/install_blender.sh index 3df7497..d5279aa 100644 --- a/src/ubuntu/install/blender/install_blender.sh +++ b/src/ubuntu/install/blender/install_blender.sh @@ -17,14 +17,14 @@ ln -s libOpenCL.so.1 /usr/lib/x86_64-linux-gnu/libOpenCL.so mkdir /blender if [ -z ${BLENDER_VERSION+x} ] then - BLENDER_VERSION=$(curl -sL https://mirror.clarkson.edu/blender/source/ \ - | awk -F'"|/"' '/blender-[0-9]*\.[0-9]*\.[0-9]*\.tar\.xz/ && !/md5sum/ {print $2}' \ + BLENDER_VERSION=$(curl -sL https://mirrors.iu13.net/blender/source/ \ + | awk -F'"|/"' '/blender-[0-9]*\.[0-9]*\.[0-9]*\.tar\.xz/ && !/md5sum/ {print $8}' \ | tail -1 \ | sed 's|blender-||' \ - | sed 's|\.tar\.xz||') + | sed 's|\.tar\.xz||'); fi BLENDER_FOLDER=$(echo "Blender${BLENDER_VERSION}" | sed -r 's|(Blender[0-9]*\.[0-9]*)\.[0-9]*|\1|') -curl -o /tmp/blender.tar.xz -L "https://mirror.clarkson.edu/blender/release/${BLENDER_FOLDER}/blender-${BLENDER_VERSION}-linux-x64.tar.xz" +curl -o /tmp/blender.tar.xz -L "https://mirrors.iu13.net/blender/release/${BLENDER_FOLDER}/blender-${BLENDER_VERSION}-linux-x64.tar.xz" tar xf /tmp/blender.tar.xz -C /blender/ --strip-components=1 cat >/usr/bin/blender <