Skip to content

Commit b8efb32

Browse files
committed
Abort script if Homebrew is not installed
1 parent e7b8e1a commit b8efb32

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

script/bootstrap

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,21 @@ main ()
4646

4747
check_deps ()
4848
{
49+
# Check if Homebrew is installed
50+
which -s brew
51+
local result=$?
52+
53+
if [ "$result" -ne "0" ]
54+
then
55+
echo
56+
echo "Homebrew is not installed (http://brew.sh). You will need to manually ensure the following tools are installed:"
57+
echo " $REQUIRED_TOOLS"
58+
echo
59+
echo "Additionally, the following libssh2 files must be symlinked under /user/local:"
60+
echo " lib/libssh2.a include/libssh2.h include/libssh2_sftp.h include/libssh2_publickey.h"
61+
exit $result
62+
fi
63+
4964
# Ensure that we have libgit2's dependencies installed.
5065
installed=`brew list`
5166

0 commit comments

Comments
 (0)