From c58972ee0a1ebc1abfd684f125735964caea1384 Mon Sep 17 00:00:00 2001 From: Jarod Brennfleck Date: Thu, 29 Dec 2022 19:24:28 +1100 Subject: [PATCH] fix(cli): quote toml path (#1410) Fixes issue when tomlPath has a space in it --- cli/src/build.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/build.ts b/cli/src/build.ts index 4bb814d8..9adc46e7 100644 --- a/cli/src/build.ts +++ b/cli/src/build.ts @@ -211,7 +211,7 @@ export class BuildCommand extends Command { debug('Start parse toml') cargoMetadata = JSON.parse( execSync( - `cargo metadata --format-version 1 --manifest-path ${cargoTomlPath}`, + `cargo metadata --format-version 1 --manifest-path "${cargoTomlPath}"`, { stdio: 'pipe', maxBuffer: 1024 * 1024 * 10,