Skip to content

Commit 17eab2b

Browse files
committed
Fix binary search
1 parent 95fc2cc commit 17eab2b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

build.libgit2.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ else
2121
fi
2222

2323
# Find static libssh2 for linking into the shared libgit2 library
24-
LIBSSH2_STATIC=$(find /usr -name "libssh2.a" 2>/dev/null | head -1)
24+
LIBSSH2_STATIC=$(find /usr /opt/homebrew 2>/dev/null -name "libssh2.a" 2>/dev/null | head -1)
2525
if [[ -z "$LIBSSH2_STATIC" ]]; then
26-
echo "$(tput setaf 1)Error: static libssh2 (libssh2.a) not found. Install libssh2-dev (Debian) or libssh2-static (Alpine).$(tput sgr0)"
26+
echo "$(tput setaf 1)Error: static libssh2 (libssh2.a) not found. Install libssh2-dev (Debian), libssh2-static (Alpine), or libssh2 (Homebrew).$(tput sgr0)"
2727
exit 1
2828
fi
2929

0 commit comments

Comments
 (0)