Skip to content

Commit c947d04

Browse files
authored
Merge pull request #54 from gitx/InstallBrewWhenMissing
Install brew when missing
2 parents 4a8748a + 03d5fa7 commit c947d04

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

script/bootstrap

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,15 @@ check_deps ()
4545
echo
4646
echo "Additionally, the following libssh2 files must be symlinked under /usr/local or /opt/homebrew :"
4747
echo " lib/libssh2.a include/libssh2.h include/libssh2_sftp.h include/libssh2_publickey.h"
48-
exit $result
48+
49+
if [ ! -z "$CI" ]
50+
then
51+
echo
52+
echo "I will try to install it now on github CI"
53+
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
54+
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/hannes/.zprofile
55+
eval "$(/opt/homebrew/bin/brew shellenv)"
56+
fi
4957
fi
5058

5159
brew_prefix=`brew --prefix`

0 commit comments

Comments
 (0)