summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Miller <[email protected]>2019-05-07 11:36:34 -0400
committerJon Miller <[email protected]>2019-05-07 11:36:34 -0400
commit13090d85b44a9ff5f5781f28ef1807fbc6ecb864 (patch)
tree20d4f7d7468934694844d5c8c4d466773427dc43
parentbf1e8a4338822ad2539a3876f58b15b590eb9e1f (diff)
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.
-rwxr-xr-xscript/build-libgit2-static.sh2
1 files changed, 1 insertions, 1 deletions
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"