Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nodkz committed Dec 19, 2018
1 parent 89a6b73 commit 427a01d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util/MongoBinary.js
Expand Up @@ -131,7 +131,7 @@ export default class MongoBinary {

if (opts.debug) {
if (typeof opts.debug === 'function' && opts.debug.apply && opts.debug.call) {
debug = opts.debug;
this.debug = opts.debug;
} else {
this.debug = console.log.bind(null);
}
Expand All @@ -149,7 +149,7 @@ export default class MongoBinary {
if (systemBinary) {
binaryPath = await this.getSystemPath(systemBinary);
if (binaryPath) {
const binaryVersion = execSync('mongod --version')
const binaryVersion = execSync(`${binaryPath} --version`)
.toString()
.split('\n')[0]
.split(' ')[2];
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Expand Up @@ -2200,6 +2200,11 @@ decompress@^4.2.0:
pify "^2.3.0"
strip-dirs "^2.0.0"

dedent@^0.7.0:
version "0.7.0"
resolved "https://registry.yarnpkg.com/dedent/-/dedent-0.7.0.tgz#2495ddbaf6eb874abb0e1be9df22d2e5a544326c"
integrity sha1-JJXduvbrh0q7Dhvp3yLS5aVEMmw=

deep-extend@^0.6.0:
version "0.6.0"
resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.6.0.tgz#c4fa7c95404a17a9c3e8ca7e1537312b736330ac"
Expand Down

0 comments on commit 427a01d

Please sign in to comment.