From 15593d558e494f34673fe9ed84cad4c9feac9f59 Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@keylocation.sg> Date: Sun, 18 Dec 2016 08:03:59 +0100 Subject: [PATCH] rimraf repopath before beginning --- src/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.js b/src/index.js index a8108f2ce6..68b06fd8e1 100644 --- a/src/index.js +++ b/src/index.js @@ -29,6 +29,7 @@ if (!module.parent) { function updateRepo({ token, repoName }) { const repoPath = `tmp/${repoName}`; + rimraf.sync(repoPath); mkdirp.sync(repoPath); let repo; -- GitLab