From 704eebe36d10268bc4157cca2c43d225470695f5 Mon Sep 17 00:00:00 2001 From: Guillaume Bougard Date: Tue, 28 May 2024 19:08:52 +0200 Subject: [PATCH] build: Follow redirect on GH OpenSSL download --- contrib/macosx/glpi-agent-packaging.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/macosx/glpi-agent-packaging.sh b/contrib/macosx/glpi-agent-packaging.sh index 09a503bf9..854219d49 100755 --- a/contrib/macosx/glpi-agent-packaging.sh +++ b/contrib/macosx/glpi-agent-packaging.sh @@ -217,11 +217,11 @@ if [ ! -d "build/openssl-$OPENSSL_VERSION" ]; then echo ======== Build openssl $OPENSSL_VERSION ARCHIVE="openssl-$OPENSSL_VERSION.tar.gz" OPENSSL_URL="https://github.com/openssl/openssl/releases/download/openssl-$OPENSSL_VERSION/$ARCHIVE" - [ -e "$ARCHIVE" ] || curl -so "$ARCHIVE" "$OPENSSL_URL" + [ -e "$ARCHIVE" ] || curl -sLo "$ARCHIVE" "$OPENSSL_URL" # Eventually verify archive if [ -n "$SHASUM" ]; then - [ -e "$ARCHIVE.sha256" ] || curl -so "$ARCHIVE.sha256" "$OPENSSL_URL.sha256" + [ -e "$ARCHIVE.sha256" ] || curl -sLo "$ARCHIVE.sha256" "$OPENSSL_URL.sha256" read SHA256 x <<<$( $SHASUM -a 256 $ARCHIVE ) read EXPECTED x <<<$( cat $ARCHIVE.sha256 ) # Don't abort build if sha256 is empty as this happens on github