Skip to content
Snippets Groups Projects
Commit 15593d55 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

rimraf repopath before beginning

parent 01f399d4
No related branches found
No related tags found
No related merge requests found
...@@ -29,6 +29,7 @@ if (!module.parent) { ...@@ -29,6 +29,7 @@ if (!module.parent) {
function updateRepo({ token, repoName }) { function updateRepo({ token, repoName }) {
const repoPath = `tmp/${repoName}`; const repoPath = `tmp/${repoName}`;
rimraf.sync(repoPath);
mkdirp.sync(repoPath); mkdirp.sync(repoPath);
let repo; let repo;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment