Skip to content

Commit

Permalink
Accept absolute paths to the fixture (rather than append them to the …
Browse files Browse the repository at this point in the history
…cwd)
  • Loading branch information
Edmund von der Burg committed Apr 2, 2013
1 parent a339ab4 commit f4f7f84
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/mongofixtures
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#!/usr/bin/env node

var argv = require('optimist').argv;
var argv = require('optimist').argv,
path = require('path');

var dbName = argv._[0],
file = process.cwd() + '/' + argv._[1];
file = path.resolve(process.cwd(), argv._[1]);

var fixtures = require('pow-mongodb-fixtures').connect(dbName);

Expand Down

0 comments on commit f4f7f84

Please sign in to comment.