Skip to content

Commit

Permalink
fix: clean up env directory after failure (#61)
Browse files Browse the repository at this point in the history
If a module fails to install, clean up the env directory before
attempting the next module.
  • Loading branch information
richardlau authored Aug 20, 2021
1 parent f139d42 commit 611aeb0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ module.exports = {
)
);

// clean-up env directory from the current package
cleanEnvDirectory();

// continue to the next module on the list
continue;
}
Expand Down

0 comments on commit 611aeb0

Please sign in to comment.