From ec75f8d0bbb930ee5e25086ddb45dbba322cf846 Mon Sep 17 00:00:00 2001 From: Antonis Kalipetis Date: Mon, 5 Aug 2024 14:52:29 +0300 Subject: [PATCH] Follow redirects when downloading OpenSSL in macOS --- build-php-brew.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-php-brew.sh b/build-php-brew.sh index 4f71e03..f7a3a70 100644 --- a/build-php-brew.sh +++ b/build-php-brew.sh @@ -9,7 +9,7 @@ brew install bison pkg-config coreutils autoconf SSL_DIR_PATH=$(pwd)/"$DIR"/ssl mkdir -p "$SSL_DIR_PATH" -curl -fSsl https://www.openssl.org/source/openssl-"$OPENSSL_VERSION".tar.gz | tar xzf - -C "$DIR" +curl -LfSsl https://www.openssl.org/source/openssl-"$OPENSSL_VERSION".tar.gz | tar xzf - -C "$DIR" cd "$DIR"/openssl-"$OPENSSL_VERSION" ./config no-shared --prefix="$SSL_DIR_PATH" --openssldir="$SSL_DIR_PATH"