Skip to content

Commit

Permalink
build: Follow redirect on GH OpenSSL download
Browse files Browse the repository at this point in the history
  • Loading branch information
g-bougard committed May 28, 2024
1 parent fb79011 commit 704eebe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contrib/macosx/glpi-agent-packaging.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 704eebe

Please sign in to comment.