diff options
author | Ungureanu Marius <marius.ungureanu@xamarin.com> | 2015-06-29 14:54:44 +0300 |
---|---|---|
committer | Ungureanu Marius <marius.ungureanu@xamarin.com> | 2015-06-29 14:54:44 +0300 |
commit | 1ed07683f85a18aab26371d2a3b83df5a146636c (patch) | |
tree | 511c451488fbdcc7f412f67fc5e9643f19cbd6f3 | |
parent | 81903b049091887737c543b84ba26fe1c2406f94 (diff) |
Robustify file check.
-rwxr-xr-x | build.libgit2.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/build.libgit2.sh b/build.libgit2.sh index 42456cc..2816b4f 100755 --- a/build.libgit2.sh +++ b/build.libgit2.sh @@ -30,13 +30,16 @@ function check_newer_binaries { if [ "$OS" == "Darwin" ] then BUILDDIR=mac + PKGPATH="./mac" + LIBEXT="dylib" else BUILDDIR=external/libgit2/build + LIBEXT="so" fi if [[ -d "$BUILDDIR" ]] then - if [[ "$BUILDDIR/libgit2-${SHORTSHA}.*" == "$BUILDDIR/libgit2-${SHORTSHA}." ]] + if [[ -f "$BUILDDIR/libgit2-${SHORTSHA}.${LIBEXT}" ]] then echo "Binaries are the same as in output directory." exit 0 @@ -46,9 +49,6 @@ fi if [ "$OS" == "Darwin" ]; then check_newer_binaries - PKGPATH="./mac" - LIBEXT="dylib" - mkdir -p external/libssh2/build pushd external/libssh2/build |