update script to be sync rather than async

This commit is contained in:
kevmodrome 2020-06-11 18:10:53 +02:00
parent 59442f18cb
commit 5d84ceb7f6
1 changed files with 4 additions and 6 deletions

View File

@ -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}`)