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