Skip to content

Commit c9a1a98

Browse files
committed
merge with master
2 parents ad252b4 + b4254de commit c9a1a98

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/util/MongoBinary.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,10 @@ export default class MongoBinary {
148148
if (systemBinary) {
149149
binaryPath = await this.getSystemPath(systemBinary);
150150
if (binaryPath) {
151+
if (~binaryPath.indexOf(' ')) {
152+
binaryPath = `"${binaryPath}"`;
153+
}
154+
151155
const binaryVersion = execSync(`${binaryPath} --version`)
152156
.toString()
153157
.split('\n')[0]

0 commit comments

Comments
 (0)