From 273a8f1e236818646500d8080e6f8332acfb99b2 Mon Sep 17 00:00:00 2001 From: Suhaib Mujahid Date: Wed, 30 Sep 2020 13:47:09 -0400 Subject: [PATCH 1/2] build: Enable set the VENDORED_PATH for libgit2 --- script/build-libgit2.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/build-libgit2.sh b/script/build-libgit2.sh index 98ff78b..9f472e4 100755 --- a/script/build-libgit2.sh +++ b/script/build-libgit2.sh @@ -16,7 +16,7 @@ if [ "$#" -eq "0" ]; then fi ROOT="$(cd "$(dirname "$0")/.." && echo "${PWD}")" -VENDORED_PATH="${ROOT}/vendor/libgit2" +VENDORED_PATH=${VENDORED_PATH-"${ROOT}/vendor/libgit2"} BUILD_SYSTEM=OFF while [ $# -gt 0 ]; do -- 2.45.2 From b8c79946919dfbd779e7d98de3ba5cb5550c177b Mon Sep 17 00:00:00 2001 From: Suhaib Mujahid Date: Wed, 30 Sep 2020 19:35:40 -0400 Subject: [PATCH 2/2] build: Enable set the ROOT for libgit2 --- script/build-libgit2.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/build-libgit2.sh b/script/build-libgit2.sh index 9f472e4..89e7534 100755 --- a/script/build-libgit2.sh +++ b/script/build-libgit2.sh @@ -15,7 +15,7 @@ if [ "$#" -eq "0" ]; then usage fi -ROOT="$(cd "$(dirname "$0")/.." && echo "${PWD}")" +ROOT=${ROOT-"$(cd "$(dirname "$0")/.." && echo "${PWD}")"} VENDORED_PATH=${VENDORED_PATH-"${ROOT}/vendor/libgit2"} BUILD_SYSTEM=OFF -- 2.45.2