checkout if commit defined

This commit is contained in:
Bob Mottram 2016-05-28 09:52:15 +01:00
parent ce846f4fb8
commit 07d7a1a45a
1 changed files with 216 additions and 214 deletions

View File

@ -84,7 +84,9 @@ function install_toxcore {
cd ~/develop
git clone $TOXCORE_REPO ~/develop/toxcore
cd ~/develop/toxcore
if [ $TOXCORE_COMMIT ]; then
git checkout $TOXCORE_COMMIT -b $TOXCORE_COMMIT
fi
autoreconf -i
./configure --enable-daemon
if [ ! "$?" = "0" ]; then