update script to be sync rather than async
This commit is contained in:
parent
d0178ed6b5
commit
7bd45fd683
|
@ -5,11 +5,9 @@
|
||||||
|
|
||||||
const rimraf = require("rimraf");
|
const rimraf = require("rimraf");
|
||||||
const homedir = require('os').homedir() + '/.budibase-cypress';
|
const homedir = require('os').homedir() + '/.budibase-cypress';
|
||||||
const { exec } = require("child_process")
|
const { execSync } = require("child_process")
|
||||||
|
|
||||||
rimraf(homedir, function (error) {
|
rimraf.sync(homedir)
|
||||||
console.log('Error: ', error);
|
|
||||||
})
|
|
||||||
|
|
||||||
exec(`../../packages/cli/bin/budi init -d ${homedir}`)
|
execSync(`../../packages/cli/bin/budi init -d ${homedir}`)
|
||||||
exec(`../../packages/cli/bin/budi run -d ${homedir}`)
|
execSync(`../../packages/cli/bin/budi run -d ${homedir}`)
|
||||||
|
|
Loading…
Reference in New Issue