Permalink
Browse files

Merge branch 'master' of github.com:MagLev/maglev

  • Loading branch information...
2 parents 5cd19b3 + fe5fe80 commit 1c8e4488979981cd05d76fa74268f7b5bb53639c @timfel timfel committed Oct 29, 2011
Showing with 5 additions and 2 deletions.
  1. +5 −2 bin/maglev
View
7 bin/maglev
@@ -185,8 +185,11 @@ initialize() {
fi
# grab a virgin repository if no repository exists
if [ ! -e $GEMSTONE_DATADIR/extent/extent0.ruby.dbf ]; then
- cp -p $MAGLEV_HOME/bin/extent0.ruby.dbf $GEMSTONE_DATADIR/extent/
- chmod 660 $GEMSTONE_DATADIR/extent/extent0.ruby.dbf
+ # In case this is called before "rake maglev:build" - e.g. in RVM
+ if [ -e $MAGLEV_HOME/bin/extent0.ruby.dbf ]; then
+ cp -p $MAGLEV_HOME/bin/extent0.ruby.dbf $GEMSTONE_DATADIR/extent/
+ chmod 660 $GEMSTONE_DATADIR/extent/extent0.ruby.dbf
+ fi
fi
}

0 comments on commit 1c8e448

Please sign in to comment.