1
0
Fork 0
mirror of synced 2024-10-02 18:16:29 +13:00

avoiding ctrl+c

This commit is contained in:
Hugo LE DALL 2020-07-11 17:54:13 +02:00
parent 672ef1745e
commit 5584a2bb4d

View file

@ -16,8 +16,10 @@ const run = async opts => {
await createEmptyAppPackage(opts)
exec(`cd ${join(opts.dir, opts.applicationId)} && npm install`)
console.log(chalk.green(`Budibase app ${opts.name} created!`))
process.exit()
} catch (error) {
console.error(chalk.red("Error creating new app", error))
process.exit(1)
}
}