mirror of
https://github.com/zen-browser/surfer.git
synced 2025-07-08 09:20:01 +02:00
chore: Escape white space in command arguments
This commit is contained in:
parent
51e3ef292c
commit
d3f18bab4c
2 changed files with 6 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@zen-browser/surfer",
|
"name": "@zen-browser/surfer",
|
||||||
"version": "1.3.21",
|
"version": "1.4.0",
|
||||||
"description": "Simplifying building firefox forks!",
|
"description": "Simplifying building firefox forks!",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
|
|
@ -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) => {
|
return new Promise((resolve) => {
|
||||||
const proc = execa(cmd, config?.args, {
|
const proc = execa(cmd, config?.args, {
|
||||||
cwd: config?.cwd || process.cwd(),
|
cwd: config?.cwd || process.cwd(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue