Skip to content
This repository was archived by the owner on Dec 20, 2023. It is now read-only.

Commit 95cf37d

Browse files
committed
Fix mvm.current() if running an rc
1 parent 41fec69 commit 95cf37d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

index.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,15 @@ module.exports.is = function(s, fn){
115115
module.exports.current = function(fn){
116116
exec(which.sync('mongod') +' --version', function(err, stdout){
117117
if(err) return fn(err);
118-
fn(null, VERSION.exec(stdout
118+
119+
var shellVersion = stdout
119120
.toString('utf-8')
120121
.split('\n')[0]
121122
.split(',')[0]
122-
.replace('db version v', '')
123-
));
123+
.replace('db version v', '');
124+
125+
console.log('shellVersion', shellVersion);
126+
fn(null, shellVersion);
124127
});
125128
};
126129

0 commit comments

Comments
 (0)