From 1e4155683aeba5dcd33aa9aa5bb8a82ef1234673 Mon Sep 17 00:00:00 2001 From: Alex Miller Date: Mon, 14 Aug 2023 00:35:35 -0500 Subject: [PATCH] follow redirects when downloading via curl --- src/main/resources/clojure/install/linux-install.sh | 2 +- src/main/resources/clojure/install/posix-install.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/clojure/install/linux-install.sh b/src/main/resources/clojure/install/linux-install.sh index c09fd21..e356241 100755 --- a/src/main/resources/clojure/install/linux-install.sh +++ b/src/main/resources/clojure/install/linux-install.sh @@ -26,7 +26,7 @@ if [[ "$prefix_param" = "-p" || "$prefix_param" = "--prefix" ]]; then fi echo "Downloading and expanding tar" -curl -O https://github.com/clojure/brew-install/releases/download/${project.version}/clojure-tools-${project.version}.tar.gz +curl -L -O https://github.com/clojure/brew-install/releases/download/${project.version}/clojure-tools-${project.version}.tar.gz tar xzf clojure-tools-${project.version}.tar.gz lib_dir="$prefix_dir/lib" diff --git a/src/main/resources/clojure/install/posix-install.sh b/src/main/resources/clojure/install/posix-install.sh index cb4eefb..4dddb96 100755 --- a/src/main/resources/clojure/install/posix-install.sh +++ b/src/main/resources/clojure/install/posix-install.sh @@ -26,7 +26,7 @@ if [ "$prefix_param" = "-p" -o "$prefix_param" = "--prefix" ]; then fi echo "Downloading and expanding tar" -curl -O https://github.com/clojure/brew-install/releases/download/${project.version}/clojure-tools-${project.version}.tar.gz +curl -L -O https://github.com/clojure/brew-install/releases/download/${project.version}/clojure-tools-${project.version}.tar.gz tar xzf clojure-tools-${project.version}.tar.gz lib_dir="$prefix_dir/lib"