summaryrefslogtreecommitdiffstats
path: root/lib/generate/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/generate/index.js')
-rw-r--r--lib/generate/index.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/generate/index.js b/lib/generate/index.js
index 2f635cb..6a07a21 100644
--- a/lib/generate/index.js
+++ b/lib/generate/index.js
@@ -148,11 +148,6 @@ var generateBook = function(options) {
}
})
- // Clean output folder
- .then(function() {
- return fs.remove(options.output);
- })
-
// Read config file
.then(function() {
return fs.readFile(path.resolve(options.input, options.configFile))
@@ -168,6 +163,11 @@ var generateBook = function(options) {
});
})
+ // Clean output folder
+ .then(function() {
+ return fs.remove(options.output);
+ })
+
// Get repo's URL
.then(function() {
return parse.git.url(options.input)