From abf02bc7d79dfb7b0bbcd404ebecb202cff2a18e Mon Sep 17 00:00:00 2001 From: lhchavez Date: Sun, 6 Dec 2020 11:55:04 -0800 Subject: Add `NewCredentialSSHKeyFromSigner` (#706) This change adds `NewCredentialSSHKeyFromSigner`, which allows idiomatic use of SSH keys from Go. This also lets us spin off an SSH server in the tests. --- script/build-libgit2.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'script/build-libgit2.sh') diff --git a/script/build-libgit2.sh b/script/build-libgit2.sh index e9c6c9c..a9ff2a9 100755 --- a/script/build-libgit2.sh +++ b/script/build-libgit2.sh @@ -69,11 +69,11 @@ cmake -DTHREADSAFE=ON \ -DCMAKE_INSTALL_PREFIX="${BUILD_INSTALL_PREFIX}" \ -DCMAKE_INSTALL_LIBDIR="lib" \ -DDEPRECATE_HARD=ON \ - "${VENDORED_PATH}" && + "${VENDORED_PATH}" -if which gmake nproc >/dev/null && [ -f Makefile ]; then - # Make the build parallel if gmake is available and cmake used Makefiles. - exec gmake "-j$(nproc --all)" install +if which make nproc >/dev/null && [ -f Makefile ]; then + # Make the build parallel if make is available and cmake used Makefiles. + exec make "-j$(nproc --all)" install +else + exec cmake --build . --target install fi - -exec cmake --build . --target install -- cgit v1.2.3