Skip to content

Commit

Permalink
Adding try/catch to cleanUp
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielBB committed Jan 31, 2020
1 parent 319257e commit 3cfe75e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ async function runForLinux(command) {
}

async function cleanUpXvfb() {
await exec.exec("bash", [`${__dirname}/cleanup.sh`]);
try {
await exec.exec("bash", [`${__dirname}/cleanup.sh`]);
} catch {

}
}

async function runForWin32OrDarwin(command) {
Expand Down

0 comments on commit 3cfe75e

Please sign in to comment.