Merge pull request #1179 from thgil/bootstrap

Bootstrap.sh check for git repository before cloning
This commit is contained in:
Michael Schmatz 2014-06-17 14:43:32 -07:00
commit 461e5659b2

View file

@ -58,7 +58,13 @@ checkDependencies deps[@] basicDependenciesErrorHandling
if command -v node >/dev/null 2>&1; then
checkNodeVersion
fi
#install git repository
git clone $repositoryUrl coco
#python ./coco/scripts/devSetup/setup.py
echo "Now copy and paste 'sudo python ./coco/scripts/devSetup/setup.py' into the terminal!"
#check if a git repository already exists here
if [ -d .git ]; then
echo "A git repository already exists here!"
else
#install git repository
git clone $repositoryUrl coco
#python ./coco/scripts/devSetup/setup.py
echo "Now copy and paste 'sudo python ./coco/scripts/devSetup/setup.py' into the terminal!"
fi