diff --git a/script/build-libgit2.sh b/script/build-libgit2.sh index 3cbfa4e..a541849 100755 --- a/script/build-libgit2.sh +++ b/script/build-libgit2.sh @@ -15,8 +15,8 @@ if [ "$#" -eq "0" ]; then usage fi -ROOT="$(cd "$(dirname "$0")/.." && echo "${PWD}")" -VENDORED_PATH="${ROOT}/vendor/libgit2" +ROOT=${ROOT-"$(cd "$(dirname "$0")/.." && echo "${PWD}")"} +VENDORED_PATH=${VENDORED_PATH-"${ROOT}/vendor/libgit2"} BUILD_SYSTEM=OFF while [ $# -gt 0 ]; do