We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09723ce commit a7610daCopy full SHA for a7610da
src/util/MongoBinary.js
@@ -1,5 +1,7 @@
1
/* @flow */
2
3
+/* eslint no-bitwise: ['error', { 'allow': ['~'] }] */
4
+
5
import fs from 'fs';
6
import os from 'os';
7
import path from 'path';
@@ -155,6 +157,10 @@ export default class MongoBinary {
155
157
if (systemBinary) {
156
158
binaryPath = await this.getSystemPath(systemBinary);
159
if (binaryPath) {
160
+ if (~binaryPath.indexOf(' ')) {
161
+ binaryPath = `"${binaryPath}"`;
162
+ }
163
164
const binaryVersion = execSync(`${binaryPath} --version`)
165
.toString()
166
.split('\n')[0]
0 commit comments