Commit 2de6a60b476ed05f067d05d10c29916df7a8e284
1 parent
7c842494
Exists in
master
and in
39 other branches
Looking for setup.py to find where's the project root
Showing
1 changed file
with
6 additions
and
5 deletions
Show diff stats
vagrant/bootstrap.sh
| @@ -2,11 +2,12 @@ | @@ -2,11 +2,12 @@ | ||
| 2 | 2 | ||
| 3 | set -e | 3 | set -e |
| 4 | 4 | ||
| 5 | -if [ -d /vagrant/colab ]; then | ||
| 6 | - basedir=/vagrant/colab | ||
| 7 | -else | ||
| 8 | - basedir=/vagrant | ||
| 9 | -fi | 5 | +for dir in /vagrant/colab /vagrant; do |
| 6 | + if [ -f $dir/setup.py ]; then | ||
| 7 | + basedir="$dir" | ||
| 8 | + break | ||
| 9 | + fi | ||
| 10 | +done | ||
| 10 | 11 | ||
| 11 | # very simple OS detection | 12 | # very simple OS detection |
| 12 | if [ -x /usr/bin/apt-get ]; then | 13 | if [ -x /usr/bin/apt-get ]; then |