fix(cta): account for null args

This commit is contained in:
amrbashir
2022-02-11 11:36:26 +02:00
parent 536c0cd7d4
commit e25fc68da6

View File

@@ -24,7 +24,7 @@ export const shell = async (
if (log) console.log(`[running]: ${command}`)
return await execa(
command,
args.filter((e) => e !== ''),
(args ?? []).filter((e) => e !== ''),
{
stdio: 'inherit',
cwd: process.cwd(),