Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 1c8e4488979981cd05d76fa74268f7b5bb53639c 2 parents 5cd19b3 + fe5fe80
Tim Felgentreff timfel authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 bin/maglev
7 bin/maglev
View
@@ -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
}
Please sign in to comment.
Something went wrong with that request. Please try again.