diff --git a/bin/mongofixtures b/bin/mongofixtures old mode 100644 new mode 100755 index b28a616..c0f35fa --- a/bin/mongofixtures +++ b/bin/mongofixtures @@ -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);