diff --git a/package.json b/package.json index afed1cd..8836fa7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@zen-browser/surfer", - "version": "1.3.21", + "version": "1.4.0", "description": "Simplifying building firefox forks!", "main": "index.js", "bin": { diff --git a/src/utils/dispatch.ts b/src/utils/dispatch.ts index 801ef6a..b277a28 100644 --- a/src/utils/dispatch.ts +++ b/src/utils/dispatch.ts @@ -65,6 +65,11 @@ export const configDispatch = ( } } + const args = []; + for (const arg of config?.args || []) { + // replace white space with escaped white space + args.push(arg.replace(/\s/g, '\\ ')) + } return new Promise((resolve) => { const proc = execa(cmd, config?.args, { cwd: config?.cwd || process.cwd(),