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.
This commit is contained in:
Jon Miller 2019-05-07 11:36:34 -04:00
parent bf1e8a4338
commit 13090d85b4
1 changed files with 1 additions and 1 deletions

View File

@ -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"