Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion scripts/utils-openssl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ clone_openssl() {
if [ ! -d ${OPENSSL_SOURCE_DIR} ]; then
printf "\tOpenSSL source directory not found: ${OPENSSL_SOURCE_DIR}\n"
printf "\tParent directory:\n"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this tree listing was added for debug and can be removed altogether.

tree -L 2 $(dirname ${OPENSSL_SOURCE_DIR}/..) || true
if command -v tree >/dev/null 2>&1; then
tree -L 2 "$(dirname "${OPENSSL_SOURCE_DIR}")" || true
else
ls -R "$(dirname "${OPENSSL_SOURCE_DIR}")" || true
fi
CLONE_TAG=${USE_CUR_TAG:+${OPENSSL_TAG_CUR}}
CLONE_TAG=${CLONE_TAG:-${OPENSSL_TAG}}

Expand Down Expand Up @@ -235,6 +239,7 @@ init_openssl() {
OSSL_VER=`LD_LIBRARY_PATH=${OPENSSL_LIB_DIRS} $OPENSSL_BIN version | tail -n1`
case $OSSL_VER in
OpenSSL\ 3.*) ;;
OpenSSL\ 4.*) ;;
*)
echo "OpenSSL ($OPENSSL_BIN) has wrong version: $OSSL_VER"
echo "Set: OPENSSL_DIR"
Expand Down
Loading