From 75a13bb111a65b80e4545685e5cd0647b86e152d Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Fri, 30 Jun 2023 14:05:29 +0200 Subject: [PATCH] axify: Update URLs of license files and follow HTTP redirects wget(1) follows HTTP redirects by default, so enable this functionality for curl(1), too. --- scripts/axify | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/axify b/scripts/axify index a9ec269..26ce496 100755 --- a/scripts/axify +++ b/scripts/axify @@ -35,7 +35,7 @@ Download() { echo "Downloading $URL to \"$FILE\" ..." if curl --version >/dev/null 2>&1; then - curl -#o "$FILE" "$URL" && return 0 + curl -#Lo "$FILE" "$URL" && return 0 echo "Failed to download $URL! [curl]" return 1 fi @@ -157,13 +157,13 @@ if [[ ! -e COPYING ]]; then "") ;; "gpl2") - LICENSE_URL="http://www.gnu.org/licenses/gpl-2.0.txt" + LICENSE_URL="https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt" ;; "gpl3") - LICENSE_URL="http://www.gnu.org/licenses/gpl-3.0.txt" + LICENSE_URL="https://www.gnu.org/licenses/gpl-3.0.txt" ;; "lgpl21") - LICENSE_URL="https://www.gnu.org/licenses/lgpl-2.1.txt" + LICENSE_URL="https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt" ;; "lgpl3") LICENSE_URL="https://www.gnu.org/licenses/lgpl-3.0.txt" -- 2.39.2