mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 17:45:40 -05:00
Merge pull request #1179 from thgil/bootstrap
Bootstrap.sh check for git repository before cloning
This commit is contained in:
commit
461e5659b2
1 changed files with 10 additions and 4 deletions
|
@ -58,7 +58,13 @@ checkDependencies deps[@] basicDependenciesErrorHandling
|
||||||
if command -v node >/dev/null 2>&1; then
|
if command -v node >/dev/null 2>&1; then
|
||||||
checkNodeVersion
|
checkNodeVersion
|
||||||
fi
|
fi
|
||||||
#install git repository
|
|
||||||
git clone $repositoryUrl coco
|
#check if a git repository already exists here
|
||||||
#python ./coco/scripts/devSetup/setup.py
|
if [ -d .git ]; then
|
||||||
echo "Now copy and paste 'sudo python ./coco/scripts/devSetup/setup.py' into the terminal!"
|
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
|
||||||
|
|
Loading…
Reference in a new issue