From 13090d85b44a9ff5f5781f28ef1807fbc6ecb864 Mon Sep 17 00:00:00 2001 From: Jon Miller Date: Tue, 7 May 2019 11:36:34 -0400 Subject: [PATCH] script/build-libgit2-static.sh: correctly set ROOT The ROOT variable is not being set correctly. Need to use dirname against $0 as well as only go up one directory instead of two. --- script/build-libgit2-static.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/build-libgit2-static.sh b/script/build-libgit2-static.sh index 680dd93..4d89fba 100755 --- a/script/build-libgit2-static.sh +++ b/script/build-libgit2-static.sh @@ -2,7 +2,7 @@ set -ex -ROOT="$(cd "$0/../.." && echo "${PWD}")" +ROOT="$(cd "$(dirname "$0")/.." && echo "${PWD}")" BUILD_PATH="${ROOT}/static-build" VENDORED_PATH="${ROOT}/vendor/libgit2" -- 2.45.2