From 45024fd5459e853fb04362a4ebd1a08bf337310d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Le=20N=C3=A9grate?= Date: Sat, 17 Apr 2021 21:50:40 +0200 Subject: [PATCH] add support for ASDF_CONCURRENCY --- bin/install | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/install b/bin/install index 5901c92..9195168 100755 --- a/bin/install +++ b/bin/install @@ -29,6 +29,7 @@ install_canon_version() { local version="$2" local install_path="$3" local tmp_download_dir="$4" + local make_flags="-j${ASDF_CONCURRENCY-1}" ## Do this first as it is fast but could fail. download_and_verify_checksums "$install_type" "$version" "$tmp_download_dir" @@ -52,8 +53,8 @@ install_canon_version() { # shellcheck disable=SC2086 ./configure $configure_options || exit 1 - make - make install + make $make_flags || exit 1 + make $make_flags install || exit 1 if [ $? -ne 0 ]; then rm -rf "$install_path"