From 2de6a60b476ed05f067d05d10c29916df7a8e284 Mon Sep 17 00:00:00 2001 From: Sergio Oliveira Date: Wed, 15 Oct 2014 13:01:10 -0300 Subject: [PATCH] Looking for setup.py to find where's the project root --- vagrant/bootstrap.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/vagrant/bootstrap.sh b/vagrant/bootstrap.sh index 62fac13..0425166 100644 --- a/vagrant/bootstrap.sh +++ b/vagrant/bootstrap.sh @@ -2,11 +2,12 @@ set -e -if [ -d /vagrant/colab ]; then - basedir=/vagrant/colab -else - basedir=/vagrant -fi +for dir in /vagrant/colab /vagrant; do + if [ -f $dir/setup.py ]; then + basedir="$dir" + break + fi +done # very simple OS detection if [ -x /usr/bin/apt-get ]; then -- libgit2 0.21.2