mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-25 03:33:36 +03:00
* fix(cta): filter out empty args, fixes #3393 * use strict inequality [skip ci]
This commit is contained in:
parent
5c0a8bfef7
commit
536c0cd7d4
5
.changes/cta-crash.md
Normal file
5
.changes/cta-crash.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"create-tauri-app": patch
|
||||
---
|
||||
|
||||
Fix `create-tauri-app` failing to bootstrap projects.
|
@ -22,12 +22,16 @@ export const shell = async (
|
||||
})
|
||||
} else {
|
||||
if (log) console.log(`[running]: ${command}`)
|
||||
return await execa(command, args, {
|
||||
stdio: 'inherit',
|
||||
cwd: process.cwd(),
|
||||
env: process.env,
|
||||
...options
|
||||
})
|
||||
return await execa(
|
||||
command,
|
||||
args.filter((e) => e !== ''),
|
||||
{
|
||||
stdio: 'inherit',
|
||||
cwd: process.cwd(),
|
||||
env: process.env,
|
||||
...options
|
||||
}
|
||||
)
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('Error with command: %s', command)
|
||||
|
Loading…
Reference in New Issue
Block a user