aboutsummaryrefslogtreecommitdiff
path: root/gulpfile.js
diff options
context:
space:
mode:
Diffstat (limited to 'gulpfile.js')
-rw-r--r--gulpfile.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/gulpfile.js b/gulpfile.js
index cd94823e..6acf6439 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -740,8 +740,7 @@ gulp.task('import-categories', function(cb) {
if(categoryOriginal) {
console.log('categoryOriginal', categoryOriginal[1])
-
- let data = fs.readFileSync(fileOriginal).toString()
+ let data = fs.readFileSync(file).toString()
data = data.replace(/(---[\s\S]+?---)/, function(m, headerContent) {
headerContent = headerContent.replace(/category: .*\n/, '')
@@ -750,7 +749,7 @@ gulp.task('import-categories', function(cb) {
return headerContent
})
- fs.writeFileSync(fileOriginal, data)
+ fs.writeFileSync(file, data)
}
}
})