From 682d70f34ab6eff0a00f8ccbb8232f4d42473dd8 Mon Sep 17 00:00:00 2001 From: Sergey Ukustov Date: Mon, 18 Dec 2017 03:34:06 +0300 Subject: [PATCH] rm -rf /build/contracts --- lib/app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/app.js b/lib/app.js index d3092d7..c73378d 100644 --- a/lib/app.js +++ b/lib/app.js @@ -114,13 +114,13 @@ class App { // Compile the contracts before instrumentation and preserve their ABI's. // We will be stripping out access modifiers like view before we recompile // post-instrumentation. - if (shell.test('-e', `${this.coverageDir}/build`)){ - shell.rm('-Rf', `${this.coverageDir}/build`) + if (shell.test('-e', `${this.coverageDir}/build/contracts`)){ + shell.rm('-Rf', `${this.coverageDir}/build/contracts`) } this.runCompileCommand(); this.originalArtifacts = this.loadArtifacts(); - shell.rm('-Rf', `${this.coverageDir}/build`); + shell.rm('-Rf', `${this.coverageDir}/build/contracts`); } catch (err) { const msg = ('There was a problem generating the coverage environment: ');