Permalink
Browse files

Fix script tags not being added to index file, fixes #364

  • Loading branch information...
1 parent 115f049 commit 8290293fa8d16c05c0e7edd6c42dec87d686a207 @ruyadorno ruyadorno committed Sep 30, 2015
Showing with 2 additions and 5 deletions.
  1. +2 −5 util.js
View
@@ -44,13 +44,10 @@ function rewrite(args) {
}
function rewriteFile(args) {
- args.path = args.path || process.cwd();
- var fullPath = path.join(args.path, args.file);
-
- args.haystack = fs.readFileSync(fullPath, 'utf8');
+ args.haystack = fs.readFileSync(args.file, 'utf8');
var body = rewrite(args);
- fs.writeFileSync(fullPath, body);
+ fs.writeFileSync(args.file, body);
}
module.exports = {

0 comments on commit 8290293

Please sign in to comment.