Skip to content

Print error when curl command not found #1630

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
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
10 changes: 5 additions & 5 deletions external_deps/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ set -u -e -o pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
WORK_DIR="${PWD}"

# Do not reuse self-built curl from external_deps custom PATH
# to download source archives or we would get errors like:
# curl: (1) Protocol "https" not supported or disabled in libcurl
CURL="$(command -v curl)"

# This should match the DEPS_VERSION in CMakeLists.txt.
# This is mostly to ensure the path the files end up at if you build deps yourself
# are the same as the ones when extracting from the downloaded packages.
Expand Down Expand Up @@ -1263,6 +1258,11 @@ if [ "${#}" -lt "2" ]; then
errorHelp
fi

# Do not reuse self-built curl from external_deps custom PATH
# to download source archives or we would get errors like:
# curl: (1) Protocol "https" not supported or disabled in libcurl
CURL="$(command -v curl)" || log error "Command 'curl' not found"

# Enable parallel build
export MAKEFLAGS="-j`nproc 2> /dev/null || sysctl -n hw.ncpu 2> /dev/null || echo 1`"

Expand Down